G
Guest
I have a navigation button for next. I DON'T want it to go past the last
record to a NEW record but I don't know how to keep it from doing that and I
want the msg to read "you are already at the last record." I tried a couple
of different options but they didn't work so now I am asking the EXPERTS!
I do have a new record button.
THANKS!
Private Sub cmdNextRec_Click()
On Error GoTo Err_cmdNext_Click
DoCmd.GoToRecord , , acNext
Exit_cmdNext_Click:
Exit Sub
Err_cmdNext_Click:
MsgBox err.Description
Resume Exit_cmdNext_Click
End Sub
record to a NEW record but I don't know how to keep it from doing that and I
want the msg to read "you are already at the last record." I tried a couple
of different options but they didn't work so now I am asking the EXPERTS!
I do have a new record button.
THANKS!
Private Sub cmdNextRec_Click()
On Error GoTo Err_cmdNext_Click
DoCmd.GoToRecord , , acNext
Exit_cmdNext_Click:
Exit Sub
Err_cmdNext_Click:
MsgBox err.Description
Resume Exit_cmdNext_Click
End Sub