I have a form bound to a query. On the form, I want to put a move forward/back cmd button on the form so the user may scroll through the records. for the move forward, I used the code below and it fails. Any suggestions on the code to move forward, but stop when at last record?
If Me.Recordset.EOF = True Then
Exit Sub
Else
DoCmd.GoToRecord , , acNext
End If
If Me.Recordset.EOF = True Then
Exit Sub
Else
DoCmd.GoToRecord , , acNext
End If