A family of Microsoft relational database management systems designed for ease of use.
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:
- Open the macro in Macro Builder (or create a new macro).
- 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.
- Under the SetWarnings action, click the arrow next to Warnings On and select No.
- Add the macro actions that run the queries (and any other tasks) that should run without confirmation messages.
- After the last task action, add another SetWarnings action.
- For this second SetWarnings, set Warnings On to Yes to re‑enable messages after the macro finishes.
- Save the macro.
To turn off action query confirmations for the whole database at startup:
- On the Create tab, in the Macros & Code group, click Macro.
- In Macro Builder, choose the SetWarnings action.
- If needed, enable Show All Actions on the Macro Design tab.
- Set Warnings On to the desired option (to suppress confirmations, choose No).
- Click Save.
- In the Save As dialog, name the macro AutoExec and click OK.
- 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: