Here is a complete list of RunCommand constants with a description of their function where I know what they do.
The list in Access Help and the one obtainable on the Microsoft Web Site are incomplete and contradict one another.
I have colour coded the list dependent on the version in which they first appeared -
Access 97, Access 2000, Access XP,
Access 2003, Access 2007 or Access 2010. Prior to Access 2007, all later
versions of Access recognise the earlier commands. See Known Problems for more details.
Some of these were retained for backwards compatibility only. If you spot any errors or can fill the gaps please
let me know.
links to code examples for that constant. Select the start letter,
ignoring the acCmd, of the constant.
Select the sixth letter of the acCmdConstant
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Constants starting acCmdL
Constant
Value
Description
acCmdLastPosition
339
Returns cursor to last position in the module window
acCmdLayoutGridlinesBoth
574
acCmdLayoutGridlinesBottom
580
acCmdLayoutGridlinesCrossHatch
578
acCmdLayoutGridlinesHorizontal
576
acCmdLayoutGridlinesNone
577
acCmdLayoutGridlinesOutline
581
acCmdLayoutGridlinesTop
579
acCmdLayoutGridlinesVertical
575
acCmdLayoutInsertColumnLeft
680
acCmdLayoutInsertColumnRight
681
acCmdLayoutInsertRowAbove
678
acCmdLayoutInsertRowBelow
679
acCmdLayoutMergeCells
682
acCmdLayoutPreview
141
Print Preview with sample data
acCmdLayoutSplitColumnCell
683
acCmdLayoutSplitRowCell
684
acCmdLineUpIcons
213
Line up icons in columns
acCmdLinkedTableManager
519
Opens the Linked Table Manager dialog
acCmdLinkTables
102
Displays the Link tables dialog
acCmdListConstants
303
Display drop down in code window of available constants
acCmdLoadFromQuery
95
Opens the Applicable Query dialog