Oracle® Objects for OLE Developer's Guide 10g Release 1 (10.1) Part Number B10118-01 |
|
See Also |
Quick Tour |
Employee Form |
However, when we are positioned on the last row (current row is the last row) and then execute DbMoveNext, the end-of-file condition (EOF) becomes TRUE and current row becomes invalid. In this case, we reset the current row using the DbMoveLast method.
The click event procedure for our Next button looks like:
Private Sub cmdNext_Click()
EmpDynaset.MoveNext
If EmpDynaset.EOF = True Then
MsgBox WarnLastEmp$
EmpDynaset.MoveLast
End If
Call EmpRefresh
End Sub