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 acCmdF

Constant
Description
Value

acCmdFavoritesAddTo
Displays the Add To Favorites dialog
299

acCmdFavoritesOpen
Displays the Open Favorites dialog
298

Code ExampleacCmdFieldList
Display/hide the Field List dialog
42

acCmdFieldTemplates
 
647

Code ExampleacCmdFilterByForm
Displays the filter by form dialog
207

Code ExampleacCmdFilterBySelection
Filters the displayed records by the selected item
208

Code ExampleacCmdFilterExcludingSelection
Filters out records that match selection
277

acCmdFilterMenu
 
619

Code ExampleacCmdFind
Opens the Find dialog box. Available in both VBE and non-VBE views
30

Code ExampleacCmdFindNext
Finds next occurrence of previously searched for phrase. Available in both VBE and non-VBE views
341

acCmdFindNextWordUnderCursor
Finds the next occurrence of the word which is under the cursor. Not really Edit Find but an improvement on it
313

acCmdFindPrevious
Find previous occurrence of the last string searched for. Not really Edit Find but an enhancement
120

acCmdFindPrevWordUnderCursor
Finds the previous occurrence of the word which is under the cursor. Equivalent to Ctrl Shift and F3
312

Code ExampleacCmdFitToWindow
Fit print preview in window
245

Code ExampleacCmdFont
Display the font selection dialog
19

acCmdFormatCells
Displays the Format Cells dialog
77

Code ExampleacCmdFormHdrFtr
Adds or removes form headers and footers
36

Code ExampleacCmdFormView
Switches to form view
281

Code ExampleacCmdFreezeColumn
Keeps the selected column in view
105