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

Last reviewed: May 7, 1997
Article ID: Q163839
The information in this article applies to:
  • Microsoft Access 97

SYMPTOMS

Novice: Requires knowledge of the user interface on single-user computers.

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

    Microsoft Access can't find the macro '<name of Command Bar>'

This message is misleading because it refers to a missing macro instead of to a missing command bar.

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.'

REFERENCES

For more information about command bars, search the Help Index for "command bars," or ask the Microsoft Access 97 Office Assistant.


Keywords : FmsProp kberrmsg
Version : 97
Platform : WINDOWS
Hardware : X86
Issue type : kbprb
Resolution Type : Info_Provided


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 7, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.