Solved

Action Query Notifications

Posted on 2006-10-31
4
281 Views
Last Modified: 2012-06-21
After turning off confirmation for "Record Changes", Document Deletions" and "Action Queries" in the Edit Find tab under options, when running make-table, update and append queries you still get pop-ups to answer yes/no to. CAn these pop-ups go away as well? I want to run these types of queries without having to answer "Yes" i actually want to do this?
0
Comment
Question by:atreidies
  • 2
4 Comments
 
LVL 65

Accepted Solution

by:
Jim Horn earned 125 total points
ID: 17845199
DoCmd.SetWarnings False

'Your code gets executed here with no idiotic 'Do you want to delete records?' prompts

DoCmd.SetWarnings True
0
 
LVL 4

Expert Comment

by:GordonPrince
ID: 17845906
Or you can use an ADODB connection and .Execute the command. You won't see the warnings that way, either.
0
 
LVL 1

Author Comment

by:atreidies
ID: 17845941
i added that to the OnActivate event for the form is there a way to set it to False for the entire application
0
 
LVL 4

Expert Comment

by:GordonPrince
ID: 17848446
Once you set
DoCmd.SetWarnings False
it stays that way until to set it back to true.

The potential problem with leaving it set to False is that errors you'd like to know about don't display either -- adds or updates that fail.

Dim con As New ADODB.Connection
With con
    .Open CurrentProject.Connection
    .Execute "delete from table1 where ID=6"  => no warnings here, but you will get messages if the statement fails
    .Close
End With
Set con = Nothing
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

895 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