Solved

Action Query Notifications

Posted on 2006-10-31
4
321 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 66

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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

626 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