Removal of query messages whilst using macros?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using delete, update and apprend queries within a macro. I would like to
deactivate the waring pop up windows.
Is there some way to do this or will I have to rewrite the macro in code to
solve my problem?
Thank you for your time.
 
If you want to remove the messages for all queries, without using the set
warnings, then in the menu bar select
Tools > Options > Edit/Search (Tab) > Confirm Action Queries (remove the
selection)

But you have to know that it will never prompt with the message event when
you are using the queries directly
==================================
if you don't want to use this method, then after you run the update query
you need to set the warnings back to true

Docmd.SetWarnings False
Docmd.RunMacro "MacroName"
Docmd.SetWarnings True
 
Before first query use Set Wannings -- Off
After last Set Warnnings -- On
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Macro Variables 4
Standard message on update query 3
Auto run query or macro 1
query in macro not working 4
Macros 2
Send query value in macro 1
Error #2950 3
Excel TWO Instances of Excel One watching Other 3

Back
Top