How to Make an Access AutoKeys Macro Work Globally
Question details
The user needs to create an AutoKeys macro in Access that functions globally across the entire database, rather than being restricted to a single form.

- Product
- Microsoft Access 2019
- Device & OS
- not provided
- Scenario
- Creating a global keyboard shortcut (such as F12) to execute a specific action, like opening a form.
- Observed behavior
- The assigned shortcut key only triggers the macro in the specific form that was open during the macro's creation. In all other contexts, the key triggers its default behavior, such as opening the Save As dialog.
Before creating your macro, ensure that all forms, tables, and reports in your Access database are completely closed to prevent the macro from being accidentally tethered to a specific active object.
Create a True Global AutoKeys Macro via the Create Ribbon
To ensure your macro operates database-wide, you must use a submacro and save it precisely as 'AutoKeys' while no forms are active in Design view.
When a form is open in Design view, newly created macros often default to being form-specific rather than application-wide. Starting the process with a clean workspace ensures the macro is registered globally by Microsoft Access.
Close every open form, query, report, or table in your current Access database.
Navigate to the 'Create' tab on the top ribbon, and click on 'Macro' in the Macros & Code group.
If the Action Catalog is not visible, click 'Action Catalog' on the ribbon. Drag and drop a 'Submacro' into your design window.
In the Submacro name field, type your desired key combination enclosed in braces. For example, type {F12} to assign the F12 key.
Inside the Submacro block, use the dropdown to add your desired action, such as 'OpenForm', and specify the target form name in the Action Arguments.
Click the 'Save' icon. You must name the macro exactly 'AutoKeys' for Access to recognize it as a global shortcut file. Close the Macro Design window.

Looking for a Free Office Suite? Try WPS Office
While Microsoft Access handles complex database management, your daily document, spreadsheet, and presentation tasks can be completed efficiently and for free with WPS Office. It provides a lightweight, highly compatible alternative to the broader Microsoft Office suite.
- 1. Download the software: Visit the official WPS Office website to download the free installation package for your operating system.
- 2. Install WPS Office: Run the downloaded installer file and follow the straightforward on-screen instructions to complete the setup.
- 3. Open your documents: Double-click any existing .docx, .xlsx, or .pptx file to open and edit it instantly within WPS Office.

Frequently Asked Questions
Why does my F12 key open the 'Save As' dialog instead of running the macro?
F12 is the default Windows and Office shortcut for the 'Save As' command. If your AutoKeys macro was mistakenly tied to a single form or wasn't named exactly 'AutoKeys', Access reverts to the default F12 behavior whenever you are outside that specific form.
Can I assign multiple keyboard shortcuts within the same AutoKeys macro?
Yes. You can open your existing 'AutoKeys' macro in Design view and simply add a new Submacro block for each additional keyboard shortcut you wish to assign.
Why is the Submacro option not visible in the Macro Design dropdown?
The Submacro option is a structural block rather than a standard action. You must drag it from the Action Catalog pane on the right side of the screen into the main Macro Design window.




