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.
By default Access 2007 only displays macro actions that can work in untrusted environments. Click
the "Show All Actions" button in the Show/Hide group of the Macro Design contextual Ribbon tab in
order to see the full list of macro actions available (including SetWarnings).
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.