Others

How to Make an Access AutoKeys Macro Work Globally

Aamir Naveed AkramAamir Naveed Akram Nov 3, 2026 870 views

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.

How to Make an Access AutoKeys Macro Work Globally Across All Forms
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 you start

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.

Solution 1Recommended

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.

1
Close all active objects

Close every open form, query, report, or table in your current Access database.

2
Open the Macro Design window

Navigate to the 'Create' tab on the top ribbon, and click on 'Macro' in the Macros & Code group.

3
Add a Submacro block

If the Action Catalog is not visible, click 'Action Catalog' on the ribbon. Drag and drop a 'Submacro' into your design window.

4
Define the shortcut key

In the Submacro name field, type your desired key combination enclosed in braces. For example, type {F12} to assign the F12 key.

5
Assign the macro action

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.

6
Save as AutoKeys

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.

Create a True Global AutoKeys Macro via the Create Ribbon
Shortcut Syntax: Always use standard SendKeys syntax in the Submacro name. Use ^ for Ctrl, + for Shift, and enclose function keys in braces, such as ^{p} for Ctrl+P or {F12} for the F12 key.
Free Microsoft Office alternative

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. 1. Download the software: Visit the official WPS Office website to download the free installation package for your operating system.
  2. 2. Install WPS Office: Run the downloaded installer file and follow the straightforward on-screen instructions to complete the setup.
  3. 3. Open your documents: Double-click any existing .docx, .xlsx, or .pptx file to open and edit it instantly within WPS Office.
Seamlessly open, edit, and save Microsoft Word, Excel, and PowerPoint formats without compatibility issues.Lightweight application that consumes minimal system resources compared to other office suites.Includes robust, built-in PDF editing, conversion, and annotation tools at no extra cost.Features a familiar tabbed user interface, requiring zero learning curve for users migrating from Microsoft Office.
microsoft office alternative - 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.