RunCommand constants are designed to allow the built-in menu functionality to be used in code. I have tried to map the constants to their menu equivalent. However this is by no means an exact or complete list, especially as functions move between menu items in different versions of Access. Also the menus change as you work in different parts of Access. Select the menu that you require below.
Insert Query Records Relationships Run Tools View Window
Control Menus
These are the menus that you get from the top left corner of a window and fall into 2 categories, Access controls or Window controls. Some of the options are the same but the RunCommand equivalent is different.
- Menu Item
- RunCommand Equivalent
- Close
- acCmdCloseWindow
- Maximize
- acCmdAppMaximize
acCmdDocMaximize - Minimize
- acCmdAppMinimize
acCmdDocMinimize - Move
- acCmdAppMove
acCmdDocMove - Restore
- acCmdAppRestore
acCmdDocRestore - Size
- acCmdAppSize
acCmdDocSize