El botón
se llamará cmdprimero
se llamará cmdprimeroEl botón
se llamará cmdanterior
El botón
se llamará cmdultimo
El botón
El botón
se llamará cmdguardar
Ahora copia los siguientes códigos en la ventana de codigo:
Private Sub cmdanterior_Click()
Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
End If
End Sub
Private Sub cmdprimero_Click()
Adodc1.Recordset.MoveFirst
End Sub
Private Sub cmdsalir_Click()
End
End Sub
Private Sub cmdsiguiente_Click()
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
End If
End Sub
Private Sub cmdultimo_Click()
Adodc1.Recordset.MoveLast
End Sub
Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
End If
End Sub
Private Sub cmdprimero_Click()
Adodc1.Recordset.MoveFirst
End Sub
Private Sub cmdsalir_Click()
End
End Sub
Private Sub cmdsiguiente_Click()
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
End If
End Sub
Private Sub cmdultimo_Click()
Adodc1.Recordset.MoveLast
End Sub
No hay comentarios:
Publicar un comentario
No dejes de comentar!!!