S
SoggyCashew
Hello, I have a buttin on my form that takes me to the precious record. If I
go back to far it gives me a 2105 error. I Wanted to have a custom mesage and
an ok button but I cant get it to work. It still opens the error window
insted of a msg box. here is what I have
Private Sub cmdPrevious_Click()
On Error GoTo Err_MyErr
DoCmd.GoToRecord , , acPrevious
Exit_MyErr:
Exit Sub
Err_MyErr:
If Err.Number <> 2105 Then
MsgBox "Custom Test Message"
End If
Resume Exit_MyErr
End Sub
go back to far it gives me a 2105 error. I Wanted to have a custom mesage and
an ok button but I cant get it to work. It still opens the error window
insted of a msg box. here is what I have
Private Sub cmdPrevious_Click()
On Error GoTo Err_MyErr
DoCmd.GoToRecord , , acPrevious
Exit_MyErr:
Exit Sub
Err_MyErr:
If Err.Number <> 2105 Then
MsgBox "Custom Test Message"
End If
Resume Exit_MyErr
End Sub