Group:  Microsoft Access ยป microsoft.public.access.modulesdaovba
Thread: How to disable On Error Resume Next?

Geek News

How to disable On Error Resume Next?
Dalt 12/30/2008 5:47:01 PM
I use "On Error Goto" all the time, but Is it possible, once you use the "On
Error Resume Next" to undo this command completely so it just stops on each
error like if you never declared an "On Error" type statement?
Re: How to disable On Error Resume Next?
"Stuart McCall" <smccall[ at ]myunrealbox.com> 12/30/2008 6:05:02 PM
"Dalt" <Dalt[ at ]discussions.microsoft.com> wrote in message
news:80967CF0-357D-4C9A-855B-63CE71507FD6[ at ]microsoft.com...
[Quoted Text]
>I use "On Error Goto" all the time, but Is it possible, once you use the
>"On
> Error Resume Next" to undo this command completely so it just stops on
> each
> error like if you never declared an "On Error" type statement?

Yes:

On Error GoTo 0

(intuitive don't ya think?) ;-)


Re: How to disable On Error Resume Next?
Dalt 12/30/2008 6:17:01 PM
Thanks! That works perfectly. Yes, so very intuitive ;)

"Stuart McCall" wrote:

[Quoted Text]
> "Dalt" <Dalt[ at ]discussions.microsoft.com> wrote in message
> news:80967CF0-357D-4C9A-855B-63CE71507FD6[ at ]microsoft.com...
> >I use "On Error Goto" all the time, but Is it possible, once you use the
> >"On
> > Error Resume Next" to undo this command completely so it just stops on
> > each
> > error like if you never declared an "On Error" type statement?
>
> Yes:
>
> On Error GoTo 0
>
> (intuitive don't ya think?) ;-)
>
>
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net