Applies To Form.
Description
You can use the ShortcutMenu property to specify whether a shortcut menu is displayed when you right-click an object on a form. For example, you might want to disable a shortcut menu to prevent the user from changing the form's underlying record source by using one of the filtering commands on the form's shortcut menu.
Setting
The ShortcutMenu property uses the following settings.
Setting | Description | Visual Basic |
Yes | (Default) Shortcut menus are displayed. | True (–1) |
No | Shortcut menus aren't displayed. | False (0) |
See Also AllowFilters property, ShortcutMenuBar property, StartupShortcutMenuBar property.
Example The following example disables the shortcut menus for the Invoice form and its controls:Forms!Invoice.ShortcutMenu = False