turn on/off warnings.

hey experts,
this seems like an easy one.  i run a lot of access programs.  in all of these programs, except one, i do not want to get warnings about updates/deletion/inserts.  i have gone to tools>options>edit/find and unchecked the boxes under "confirm" so this does not happen.  the trouble occurs when i want to run the one program where i do want the confirmations.  i don't want to have to check the boxes everytime i run it and then uncheck them when i'm done so that it doesn't carry over to the other programs.  i've tried doing docmd.setwarnings = true on form load and turning it off before the program closes.  all i get is the following warning "you won't be able to undo the changes this action query is about to make to the data in a linked table or tables".  the warning i want to see is "you are about to update 132 row(s)" which is what i see when i have the "confirm" checkboxes checked.  is there a way of replicating the checking and unchecking of these checkboxes from code so that i get the desired warning message?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DoCmd.SetWarnings False
'U'r Code
DoCmd.SetWarnings True

U can use vice versa too
Application.SetOption "Confirm Action Queries", False
Application.SetOption "Confirm Record Changes", False

...to turn them off.  Same thing with True to turn them back on.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ryeandiAuthor Commented:
thanks rick,
exactly what i was looking for.
my bad...overlooked the post guyz
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.