Tuesday, December 11, 2007

How to work with the Last Button to access data

How to work with the Last Button to access data

To work with the Last Button to access data

Step 1:

To go to the last record from a Command button, add the button to the form:

Step 2:

Set the Caption properties:

Caption=Last

Step 3:

Double click on the button and write down the programming codes:

Private Sub Command4_Click()

Adodc1.Recordset.MoveLast

End Sub

This will skip to the last record after clicking on the 'Last' button.


No comments: