Solved

turn on/off warnings.

Posted on 2003-12-09
4
879 Views
Last Modified: 2010-04-16
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?

thanks,
rye
0
Comment
Question by:ryeandi
  • 2
4 Comments
 
LVL 4

Expert Comment

by:dasari
ID: 9905889
DoCmd.SetWarnings False
'U'r Code
DoCmd.SetWarnings True

U can use vice versa too
0
 
LVL 2

Accepted Solution

by:
bluzeman earned 25 total points
ID: 9905946
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.

Rick
0
 
LVL 1

Author Comment

by:ryeandi
ID: 9906020
thanks rick,
exactly what i was looking for.
rye
0
 
LVL 4

Expert Comment

by:dasari
ID: 9906034
my bad...overlooked the post guyz
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Transfer records between two Access tables 6 36
Access Runtime 2010 Error 17 29
Run Time Error 3075 15 40
MS accesss using VBA to change a default value 5 26
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

937 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now