Error Handling?

  • Thread starter Thread starter Jason Gyetko
  • Start date Start date
J

Jason Gyetko

When I get an error I'm calling different procedures according to error
number. In my case else statement (for any error number not defined by me)
I want to pop up the normal Microsoft Visual Basic window that you get if
you do not specify On Error. How do I do this?

It's the one titled Microsoft Visual Basic, then diplays the Runtime error
and Description with 4 buttons at the bottom: Continue, End, Debug, & Help.

Thanks.
 
Hi,


for an overflow:

Err.Raise 6


If your On Error Go To labelLine is still in effect, you may got a
nasty loop, it is preferable to kill error trapping, so the environment will
moves up and eventually be catch by an error trapping define in a previous
level of execution, but exactly like a try-catch, you will then loose the
environment that caused the error, you won't be able to explore the
"context" of the error (<rant>that is why the barbaric try-catch-finally
is, definitively, a less preferable technique, about error trapping, than
the one implemented in VBA<\rant>).



Vanderghast, Access MVP
 
Back
Top