Full List of All RunCommand Constants

Here is a complete list of RunCommand constants with a description of their function where I know what they do. Both the list in Access Help and the list 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 or Access 2007. 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.

Code Link 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 acCmdA

Constant
Description
Value
Code ExampleacCmdAboutMicrosoftAccess
Displays the About Access Information dialog
35

acCmdAddFromOutlook
 
583

acCmdAddInManager
I assume that it opens the Add In Manager window
526

acCmdAddWatch
Adds a variable to the Watch Window
201

Code ExampleacCmdAddToNewGroup
Adds an item to a newly created group
494

Code ExampleacCmdAdvancedFilterSort
Displays Query By Example form for filter
99

Code ExampleacCmdAlignBottom
Aligns the bottom edges of a selection of controls if no overlap. Else aligns top to bottom
46

acCmdAlignCenter
 
477

Code ExampleacCmdAlignLeft
Aligns the left edges of a selection of conols if no overlap else abuts left edge to right edge
43

acCmdAlignmentAndSizing
I assume that it displays the Alignment toolbar
478

acCmdAlignMiddle
 
476

Code ExampleacCmdAlignRight
Aligns the right edges of a selection of controls if no overlap else abuts left edge to right edge
44

Code ExampleacCmdAlignToGrid
Aligns selection to grid
47

Code ExampleacCmdAlignTop
Aligns the top edges of a selection of controls if no overlap else abuts top edge to bottom edge
45

Code ExampleacCmdAlignToShortest
Sizes selected controls to shortest
153

Code ExampleacCmdAlignToTallest
Sizes selected controls to tallest
154

acCmdAnalyzePerformance
Displays the Analyze Performance dialog
283

acCmdAnalyzeTable
Displays the Table Analyzer Wizard
284

acCmdAnchorBottomLeft
 
616

acCmdAnchorBottomRight
 
618

acCmdAnchorBottomStretchAcross
 
617

acCmdAnchorStretchAcross
 
611

acCmdAnchorStretchDown
 
613

acCmdAnchorStretchDownAcross
 
614

acCmdAnchorStretchDownRight
 
615

acCmdAnchorTopLeft
 
610

acCmdAnchorTopRight
 
612

Code ExampleacCmdAnswerWizard
Displays the Help Find dialog
235

acCmdApplyAutoFormat1
 
648

acCmdApplyAutoFormat2
 
649

acCmdApplyAutoFormat3
 
650

acCmdApplyAutoFormat4
 
651

acCmdApplyAutoFormat5
 
652

acCmdApplyAutoFormat6
 
653

acCmdApplyAutoFormat7
 
654

acCmdApplyAutoFormat8
 
655

acCmdApplyAutoFormat9
 
656

acCmdApplyAutoFormat10
 
657

acCmdApplyAutoFormat11
 
658

acCmdApplyAutoFormat12
 
659

acCmdApplyAutoFormat13
 
660

acCmdApplyAutoFormat14
 
661

acCmdApplyAutoFormat15
 
662

acCmdApplyAutoFormat16
 
663

acCmdApplyAutoFormat17
 
664

acCmdApplyAutoFormat18
 
665

acCmdApplyAutoFormat19
 
66

acCmdApplyAutoFormat20
 
667

acCmdApplyAutoFormat21
 
668

acCmdApplyAutoFormat22
 
669

acCmdApplyAutoFormat23
 
670

acCmdApplyAutoFormat24
 
671

acCmdApplyAutoFormat25
 
672

Code ExampleacCmdApplyDefault
Apply's default formatting to selected control
55

Code ExampleacCmdApplyFilterSort
Apply's the filter entered in a Filter Design window
93

Code ExampleacCmdAppMaximize
Maximizes Access Window
10

Code ExampleacCmdAppMinimize
Minimize Access window
11

Code ExampleacCmdAppMove
Changes mouse into 4 headed arrow to enable the Access window to be moved
12

Code ExampleacCmdAppRestore
Restores Access window
9

Code ExampleacCmdAppSize
Size Access window
13

acCmdArrangeIconsAuto
Auto arrange icons
218

acCmdArrangeIconsByCreated
Arrange the icons in date created order
216

acCmdArrangeIconsByModified
Arrange the icons in date modified order
217

acCmdArrangeIconsByName
Arrange icons in database window in alphabetical order
214

acCmdArrangeIconsByType
Arranges icons by the type of object
215

Code ExampleacCmdAutoCorrect
Displays the AutoCorrect dialog
261

acCmdAutoDial
Automatically phones a selected number
192

acCmdAutoFormat
Displays the AutoFormat dialog
270