Access - Set warnings set to no - not working

I have a database - where i have setwarnings macro as 'no' - but I am still receiving pop-ups.

Therefore, when I re-run queries with pre-existing tables - I get the pop-ups "Are you sure you want to replace."

Please advise why this is not working.

Thank you.
exp vgAsked:
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.

Rey Obrero (Capricorn1)Commented:
uncheck  action Queries check box

office button > access Options > Advanced > Editing   --- look for CONFIRM

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
exp vgAuthor Commented:
Thanks Rey - where is the action Queries check box.
Dale FyeOwner, Developing Solutions LLCCommented:
Personally, I cannot think of a good reason for using the docmd.SetWarnings method.  This method is fraught with potential for catastrophie and should be avoided if at all possible.

Instead of using that method to hide warnings associated with Delete, Append, and Update queries, I would strongly recommend that you adopt the database, and querydef Execute methods.

Currentdb.Execute strSQL, dbfailOnError    ' used for action queries
currentdb.Querydef("queryName").Execute dbfailonerror

The 'dbFailOnError' option used with the execute method will cause an error to be raised if the action query fails for any reason, which you can then trap in your error handling routine.
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Rey Obrero (Capricorn1)Commented:
@exp vg,

what version of access are you using?

here is the image for A2010

Rey Obrero (Capricorn1)Commented:
you can set by clicking on

File > Options > Client Settings
Dale FyeOwner, Developing Solutions LLCCommented:
Although you can do what Rey is recommending, I strongly recommend against that as well.  When running queries manually, it is advantageous to have the warnings popup, just in case you got your where clause wrong and are about to delete or update 100's of records instead of 5 or 10.
exp vgAuthor Commented:
Thank you both. At this point - I have tested and automated the database as much as possible - so just need to ensure that the pop-ups do not appear.

Let me please give this a try and get back to you.
exp vgAuthor Commented:
Here is an update - my Action Queries was already unchecked.

When I click on the Office Button (I take this is the button at the bottom left of the screen) - I do not see Access options to complete this step.

The issue I am having is that when I run the database with all included Queries and Macros without flaw or error, the pop-ups do not arise.

However, if there is one mis-step (i.e mis-labeled data source, etc.) and the database operations are stopped pre-maturely, when I try to relaunch the database again, I get the pop-ups "The table X will be replaced" Yes/No, etc.

Is there a way to suppress the pop-ups after database operational completion has been disrupted, and I have to restart?

Thank you.
Rey Obrero (Capricorn1)Commented:
"Access options "  is at the lower right corner  of the Menu beside Exit Access
exp vgAuthor Commented:
Then I have it - I have gone to Access Options - Client Settings - Confirm - unchecked Action Queries.

However, the pop-ups still appear if the database operations is disrupted.

Please advise.
Rey Obrero (Capricorn1)Commented:
I can't certainly know what causing the pop-ups without seeing your db.

just make sure that if you set the warning message in vba

docmd.setwarnings 0

' run your codes here

'set the warning back to true
docmd.setwarnings -1
exp vgAuthor Commented:
Thank you.
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.