I don't use macros... this is the VBA I use:
Code:
'Previous record
Private Sub GoPrevious_Click()
On Error GoTo Err_GoPrevious_Click
DoCmd.GoToRecord , , acPrevious
Exit_GoPrevious_Click:
Exit Sub
Err_GoPrevious_Click:
If Err.Number <> 2105 Then
MsgBox Err.Description & " Error# " & Err.Number
End If
Resume Exit_GoPrevious_Click
End Sub
'Next record
Private Sub GoNext_Click()
On Error GoTo Err_GoNext_Click
DoCmd.GoToRecord , , acNext
Exit_GoNext_Click:
Exit Sub
Err_GoNext_Click:
If Err.Number <> 2105 Then
MsgBox Err.Description & " Error# " & Err.Number
End If
Resume Exit_GoNext_Click
End Sub