Share via

Turn Off query pops

Tibbs, Rob D 0 Reputation points
2026-05-12T01:33:00.7666667+00:00

How to turn off MS Accessbase query when running a macro

Microsoft 365 and Office | Access | For education | Windows

2 answers

Sort by: Most helpful
  1. Dora-T 13,745 Reputation points Microsoft External Staff Moderator
    2026-05-12T04:46:43.2+00:00

    Hi Tibbs, Rob D

    To turn off the query confirmation pop-up when running a macro in Microsoft Access, you can try either of the following methods: 

    1.Disable warnings in the macro 

    Add the SetWarnings action before running the query and set: 

    Warnings On = No 

    User's image

    2.Disable confirmation prompts in Access 

    -Go to: File > Options > Client Settings 

    -Under the “Confirm” section, uncheck: Action queries 

    -Then click OK. 

    User's image This will stop Access from showing the confirmation message. Please note that this setting applies to all action queries in the database, so if you only want to suppress the prompt for a specific macro, using SetWarnings may be a better option.

    I hope this helps.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".       

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.  

    Was this answer helpful?


  2. AI answer

    2026-05-12T01:33:09.2333333+00:00

    To turn off the confirmation pop‑ups that appear when a macro runs action queries in Access, use the SetWarnings macro action.

    For a specific set of tasks in a macro:

    1. Open the macro in Macro Builder (or create a new macro).
    2. In the drop‑down list at the top of Macro Builder, select the SetWarnings action.
      • If SetWarnings is not listed, on the Macro Design tab, in the Show/Hide group, select Show All Actions.
    3. Under the SetWarnings action, click the arrow next to Warnings On and select No.
    4. Add the macro actions that run the queries (and any other tasks) that should run without confirmation messages.
    5. After the last task action, add another SetWarnings action.
    6. For this second SetWarnings, set Warnings On to Yes to re‑enable messages after the macro finishes.
    7. Save the macro.

    To turn off action query confirmations for the whole database at startup:

    1. On the Create tab, in the Macros & Code group, click Macro.
    2. In Macro Builder, choose the SetWarnings action.
      • If needed, enable Show All Actions on the Macro Design tab.
    3. Set Warnings On to the desired option (to suppress confirmations, choose No).
    4. Click Save.
    5. In the Save As dialog, name the macro AutoExec and click OK.
    6. Close Macro Builder. The macro will run automatically the next time the database opens.

    Note: The database must be trusted for the SetWarnings action to run.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.