D
Dave
I have a button that moves user to the next record. After the last record,
user gets the following error message.
"You can't go to the specified record. "
how can I modify the following code to give a message to the user when it
is the end of the file? I used the button wizard to create this.
Private Sub cmd_NextWord_Click()
Dim rst As ADODB.recordset
Set rst = New ADODB.recordset
Dim intAnswer As Integer
On Error GoTo Err_cmd_NextWord_Click
DoCmd.GoToRecord , , acNext
Exit_cmd_NextWord_Click:
Exit Sub
Err_cmd_NextWord_Click:
MsgBox Err.Description
Resume Exit_cmd_NextWord_Click
End Sub
user gets the following error message.
"You can't go to the specified record. "
how can I modify the following code to give a message to the user when it
is the end of the file? I used the button wizard to create this.
Private Sub cmd_NextWord_Click()
Dim rst As ADODB.recordset
Set rst = New ADODB.recordset
Dim intAnswer As Integer
On Error GoTo Err_cmd_NextWord_Click
DoCmd.GoToRecord , , acNext
Exit_cmd_NextWord_Click:
Exit Sub
Err_cmd_NextWord_Click:
MsgBox Err.Description
Resume Exit_cmd_NextWord_Click
End Sub