ACC95: Run Macro Command Not Available on Startup Menu (138772)
The information in this article applies to:
- Microsoft Access for Windows 95 7.0
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.
Modification Type: | Major | Last Reviewed: | 7/5/2002 |
---|
Keywords: | kberrmsg kbprb kbusage KB138772 |
---|
|