Documente Academic
Documente Profesional
Documente Cultură
Case Is = 1
rsnotas.Recordset.MoveFirst ' Primer registro
Case Is = 2
If Not rsnotas.Recordset.EOF = True Then
rsnotas.Recordset.MoveNext 'Vuelve siguiente registro
Else
MsgBox "LLEGO AL ÙLTIMO REGISTRO", vbCritical
rsnotas.Recordset.MoveLast 'ULTIMO
End If
Case Is = 3
If Not rsnotas.Recordset.BOF = True Then
rsnotas.Recordset.MovePrevious 'UN REGISTRO ATRÁS
Else
MsgBox " LLEGO AL PRIMER REGISTRO", vbCritical
rsnotas.Recordset.MoveNext 'AVANZA UN REGISTRO
End If
Case Is = 5
Dim MENSAJE As Integer
On Error GoTo DeleteErr
Case Is = 6
rsnotas.Refresh ' para limpiar el control recordset
Dim BUSCA As String ' Variable para buscar el nombre o apellido
End If
Case Is = 7
End
Case Is = 8
CmdGuardar(0).Enabled = True 'habilitar los controles
CmdGuardar(1).Enabled = True
CmdGuardar(2).Enabled = True
CmdGuardar(3).Enabled = True
CmdGuardar(5).Enabled = True
CmdGuardar(6).Enabled = True
CmdGuardar(7).Enabled = True
rsnotas.Recordset.MovePrevious 'UN REGISTRO ATRÁS
End Select
End Sub
End Select
End Sub
End Sub
Case Else
MsgBox "DATOS INCORRECTOS"
KeyAscii = 0
End Select
If KeyAscii = 13 Then
Text3.SetFocus
KeyAscii = 0
End If
End Sub