Microsoft KB Archive/163839

= ACC97: Misleading Message When Form's Shortcut Menu Is Missing =

Article ID: 163839

Article Last Modified on 1/19/2007

-

APPLIES TO


 * Microsoft Access 97 Standard Edition

-



This article was previously published under Q163839



Moderate: Requires basic macro, coding, and interoperability skills.



SYMPTOMS
When you try to use a shortcut menu on a form in Microsoft Access 97, if the shortcut menu is missing or does not exist, Microsoft Access displays the following message:

Microsoft Access can't find the macro ' '

This message is misleading because it refers to a missing macro instead of to a missing shortcut menu.



MORE INFORMATION
The message refers to earlier versions of Microsoft Access when custom menu bars were created from macros. Note that for backward compatibility, you can still use macros as menu bars in Microsoft Access 97; however, you might consider converting your macros to command bars. To convert a macro to a command bar, select the macro in the Database window. Then on the Tools menu, point to Macro, and click one of the Create commands for a menu, toolbar, or shortcut menu.

Steps to Reproduce Behavior

 * 1) Start Microsoft Access 97 and open the sample database Northwind.mdb.
 * 2) Click the Forms tab in the Database window.
 * 3) Create a new form not based on any table or query in Design View.
 * 4) Set the MenuBar property of the form to MyShortCutMenu.
 * 5) Open the form in Form view. Note that instead of informing you of a missing command bar, Microsoft Access displays the message "Microsoft Access can't find the macro 'MyShortCutMenu.'

