Hi all,
I've been away from Access error handling for a while, and now that I've returned I can't figure out what I'm doing wrong here.
The following code doesn't pick up the error when there is one.
But if I move the goto to the following line after a resume next, it works fine.
What am I missing here?
Thanks
Robin
I've been away from Access error handling for a while, and now that I've returned I can't figure out what I'm doing wrong here.
The following code doesn't pick up the error when there is one.
Code:
On Error GoTo error_handler:
'Code here
Exit Sub
error_handler:
Call errorhandler(Err.Number, Err.Description, Me.Name, "Search_Click")
End Sub
Code:
On Error Resume Next
GoTo error_handler:
'Code here
Exit Sub
error_handler:
Call errorhandler(Err.Number, Err.Description, Me.Name, "Search_Click")
End Sub
Thanks
Robin
Comment