Error Handling?

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.
 
M

Michel Walsh

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top