How to assign a keyboard shortcut to the mainmenu

User avatar
sistemaPR
2StarLounger
Posts: 119
Joined: 01 Jul 2013, 14:08

How to assign a keyboard shortcut to the mainmenu

Post by sistemaPR »

Hi

Is there is a way to assing a keyboard shortcut to a Main Menu Form ?

User avatar
HansV
Administrator
Posts: 78629
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: How to assign a keyboard shortcut to the mainmenu

Post by HansV »

For Access 2010/2013:
To assign database-wide keyboard shortcuts:
- Activate the Create tab of the ribbon.
- Click Macro in the Macro & Code group.
- Drag Submacro from the ActionCatalog into the new macro.
S208.png
- Change the name of the submacro to the code for the keyboard shortcut.
- The Ctrl key is coded as ^, the Alt key as % and the Shift key as +.
- So for example if you want to assign Ctrl+m, name the submacro ^m
- Insert commands into the submacro. In your example, the OpenForm action.
- Set the arguments for the commands as needed.
- If you want to assign other keyboard shortcuts, insert a submacro for each new shortcut.
- When done, save the macro as AutoKeys. This name is obligatory.
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans