The information in this article applies to:
SYMPTOMS
Moderate: Requires basic macro, coding, and interoperability skills.
CAUSEThe ShortcutMenuBar property does not work with controls that cannot receive the focus. RESOLUTIONUse one of the following methods to work around this behavior, depending on your version of Microsoft Access. Method 1: Microsoft Access 7.0 and 97Place an invisible command button on the form and use it to invoke your custom shortcut menu:
Method 2 (Microsoft Access 97)You can use the MouseDown event of the image or label control to invoke the ShowPopup method of your custom shortcut menu. In order to use this method, your custom menu must have its Type property set to PopUp, which is a requirement for any shortcut menu.This example assumes that you are familiar with Visual Basic for Applications and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information about Visual Basic for Applications, please refer to the "Building Applications with Microsoft Access 97" manual. Set the MouseDown event of the image or label control to the following event procedure. This example assumes a control named Image0, and a shortcut menu named Custom1; substitute the names of your own control and shortcut menu in the procedure.
STATUSThis behavior is by design. REFERENCES
For more information about using shortcut menus in Microsoft Access, search
the Help Index for "shortcut menus," or ask the Microsoft Access 97 Office
Assistant.
Additional query words: short cut popup
Keywords : FmsProp FmsHowto |
Last Reviewed: May 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |