O
Orlando
Hi, I created a command button to move to the next register in my form, how
can I do to control the messages when the end of the file is reached, because
now says something like "You Can't go to the selected register" I would like
to change that message for something more specific.
If someone have an Idea of How to do that, I would appreciated.
Private Sub Command28_Click()
On Error GoTo Err_Command28_Click
DoCmd.GoToRecord , , acNext
Exit_Command28_Click:
Exit Sub
Err_Command28_Click:
MsgBox Err.Description
Resume Exit_Command28_Click
End Sub
can I do to control the messages when the end of the file is reached, because
now says something like "You Can't go to the selected register" I would like
to change that message for something more specific.
If someone have an Idea of How to do that, I would appreciated.
Private Sub Command28_Click()
On Error GoTo Err_Command28_Click
DoCmd.GoToRecord , , acNext
Exit_Command28_Click:
Exit Sub
Err_Command28_Click:
MsgBox Err.Description
Resume Exit_Command28_Click
End Sub