View Full Version : docmd.setwarnings true not working


Noel
05-03-2007, 11:00 AM
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

boblarson
05-03-2007, 11:06 AM
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.

Noel
05-03-2007, 11:19 AM
I ended up rebooting and compact/repaired. Very strange though that I never could setwarnings true...

boblarson
05-03-2007, 11:24 AM
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?)

Noel
05-03-2007, 01:31 PM
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