Article ID: 138772
Article Last Modified on 7/5/2002
APPLIES TO
- Microsoft Access 95 Standard Edition
This article was previously published under Q138772
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you run a macro or Visual Basic for Applications routine that uses a
DoMenuItem action to choose the Macro command from the Startup menu, you
may receive the following error message:
The command or action 'Macro' isn't available now"
CAUSE
The Macro command is not available on the Startup menu.
RESOLUTION
Instead of using the DoMenuItem action to run a macro, use the RunMacro
action. You can use the RunMacro action in macros and in Visual Basic code.
The syntax for the RunMacro action is as follows
DoCmd.RunMacro <"macroname">
where <macroname> is the name of the macro you want to run.
STATUS
This behavior is by design.
REFERENCES
For more information about the RunMacro action, search for "RunMacro
Action," using the Microsoft Access for Windows 95 Help Index.
For more information about the DoMenuItem action, search for "DoMenuItem
Action," using the Microsoft Access for Windows 95 Help Index.
Additional query words: the command or action macro isnt available now
Keywords: kberrmsg kbprb kbusage KB138772