Solved

Action Query Notifications

Posted on 2006-10-31
4
270 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

762 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

11 Experts available now in Live!

Get 1:1 Help Now