D
david101
Hi,
Is it possible to force an access procedure to enter the debugger and break
when there is an error? I'm trapping errors using the standard errorhandler
methods, but I am stuck in a loop, and I would like to find out where the
problem is.
Is there any code that I could place in my error handler to force vba to
stop running code and enter the debugger iwhen it encounters a particular
error number?
Here's what my error handler looks like now...
ErrorHandlerExit:
Exit Sub
ErrorHandler:
MsgBox "Error No: " & Err.Number & "; Description: " & Err.Description
Resume ErrorHandlerExit
In this case I get an Error# 91, but when I hit the ok button on the MsgBox
the program immediately gives me the same error again.
- David
Is it possible to force an access procedure to enter the debugger and break
when there is an error? I'm trapping errors using the standard errorhandler
methods, but I am stuck in a loop, and I would like to find out where the
problem is.
Is there any code that I could place in my error handler to force vba to
stop running code and enter the debugger iwhen it encounters a particular
error number?
Here's what my error handler looks like now...
ErrorHandlerExit:
Exit Sub
ErrorHandler:
MsgBox "Error No: " & Err.Number & "; Description: " & Err.Description
Resume ErrorHandlerExit
In this case I get an Error# 91, but when I hit the ok button on the MsgBox
the program immediately gives me the same error again.
- David