SetWarnings Action in Access 2007 Macros

  • Thread starter Thread starter Guest
  • Start date Start date
I'm not sure what you are trying to do. If you want to use the set warnings
you need to code it in on VBA.

In your event procedure you can use the following to shut off warnings:

DoCmd.SetWarnings False

I strongly recommend that at the end of your procedure you turn them back on
by:

DoCmd.SetWarnings True

I also make a very simple form with a command button that sets my warnings
back to true so if I made an error I can simply click the button to turn
warnings back on. I can not stress enough how important it is to turn
warnings back on. I know I have lost hours of work by not having the
warnings on.

hope this helps,
Robert
 
I disagree.. don't turn it on dont turn it OFF unless you REALLY NEEED
TO

if every procedure turns it on and off then you're ****ed

do you ever nest functions / procedures, Robert?

Turn them off when you start a BATCH and turn them off on COMPLETION.

-Susie
 

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

Similar Threads


Back
Top