Private Sub Command5_Click()
On Error GoTo ehandler
MoveNext
Exit Sub
ehandler:
MsgBox
Resume Next
End Sub
Printable View
Private Sub Command5_Click()
On Error GoTo ehandler
MoveNext
Exit Sub
ehandler:
MsgBox
Resume Next
End Sub
Either there is no error or in your Tools > Option > General tab >
the Break on All errors is selected. So this will ignore your error
handling.
You haven't got any parameters for MsgBox, and it needs at least one, eg:
MsgBox "Error occured"
Also check what RobDog888 said, as that is a common problem when checking error handling.