I am programming my own navigation button with VBA, but I am having trouble with the syntax for the end of the recordset. I want the code to say:
If (Me.Recordset.MoveNext.EOF=True) Then
MsgBox ("You're already at the end of the list."
Else
DoCmd.GoToRecord , , acNext
End If
However, I get an errory saying "object required." Any ideas? Thanks!!
If (Me.Recordset.MoveNext.EOF=True) Then
MsgBox ("You're already at the end of the list."
Else
DoCmd.GoToRecord , , acNext
End If
However, I get an errory saying "object required." Any ideas? Thanks!!