Skip Headers

Oracle® Objects for OLE Developer's Guide
10g Release 1 (10.1)

Part Number B10118-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Master Index
Master Index
Go to Feedback page
Feedback

Moving to First and Last Rows

See Also
Quick Tour
Employee Form

To move to the first row of a dynaset, we use the DbMoveFirst method. We then call EmpRefresh() routine to refresh the data in the Employee form.

In our employee example, the First click event procedure looks like:

Private Sub cmdFirst_Click()

EmpDynaset.MoveFirst

Call EmpRefresh

End Sub

To move to the last row, we use the DbMoveLast method. We then call EmpRefresh() routine to refresh the data in the Employee form.

In our employee example, the Last click event procedure looks like:

Private Sub cmdLast_Click()

EmpDynaset.MoveLast

Call EmpRefresh

End Sub