Form.ShortcutMenu property (Access)

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. Read/write Boolean.

Syntax

expression.ShortcutMenu

expression A variable that represents a Form object.

Remarks

The default value is True.

This property controls the display of the shortcut menus for a form and for any of its controls. If the ShortcutMenu property is set to False, shortcut menus aren't displayed when you right-click a form or any of its controls.

If you are developing a wizard, you might want to hide shortcut menus on your wizard forms to prevent the user from viewing or using them. This is especially true for forms that display choices. For example, the ShortcutMenu property for the Startup form in the Northwind sample database is set to No. This prevents users from displaying shortcut menus for the form or controls on the form.

Example

The following example disables the shortcut menus for the Invoice form and its controls.

Forms!Invoice.ShortcutMenu = False

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.