Search notes:

Access Object Model: Application.RunCommand

application.runCommand() runs a built-in menu or toolbar commands. runCommand takes a single parameter whose type is the acCommand enumeration.
runCommand() replaces DoCmd.DoMenuItem.

See also

Compare with DoCmd.RunCommand.
The Application object.

Index