docmd.setwarnings true not working

Noel

Registered User.
Local time
Today, 14:40
Joined
Apr 13, 2007
Messages
61
I'm using docmd.setwarnings false/true in a module.

While testing, I bombed and I don't have an error handler right now. I've been trying to set the warnings back on, but I can't!!!

From both a button on a form and the intermediate window in a module I call docmd.setwarnings true, but the warnings are still turned off?

This should work, shouldn't it...I've done it before...what am I spacing out on?

Thanks.

Noel

Also, is the standard error handler the following relative to setwarnings:
errhandler:
docmd.setwarnings true
resume next
 
Yes, I've done it before and just put it in a sub in a standard module and then ran that sub (not from the immediate window, but just putting my mouse in the sub and clicking the debug run button)

You might try rebooting though after doing so.

Also, the error handler as listed is roughly what I use.
 
thanks Bob

I ended up rebooting and compact/repaired. Very strange though that I never could setwarnings true...
 
I've found that NOTHING is strange and unusual when it comes to Access. It does weird things at times that are seemingly unexplainable and you just have to expect the unexpected (what a cliché, eh?)
 
funny

I have the same experience with a broad spectrum of odd happenings in Access, it's good to know that it's not just me.

Thanks again for you help.

Noel
 

Users who are viewing this thread

Back
Top Bottom