Complete List of Run Command Constants

The RunCommand method was added to Access 97 to replace the DoMenuItem method. The RunCommand method runs a built-in menu or toolbar command and uses the syntax

object.RunCommand command

where object is the application or the DoCmd object, and command represents the menu or toolbar command. Each command has a constant that you can use, and they're listed in the Help section.

To locate a complete list of RunCommand constants, open Help's Index feature and enter

Run Command Method Constants

If that doesn't work, you can still get there by taking the scenic route. Enter

Run Command

and choose Run Command Action from the third control. At the bottom of this section, click the first RunCommand link. In the resulting window, click the RunCommand Method Constants link in the second paragraph under the Remarks heading. This last link should display a complete list of VB RunCommand constants.

Access Index

Main Index

Search RD Techbase