StartupShortcutMenuBar Property

Description

You can use the StartupShortcutMenuBar property to specify the shortcut menu bar macro that is the global menu for your application.

Setting

The StartupShortcutMenuBar property is a string expression that is the name of a menu bar macro that displays a custom shortcut menu bar.

You can set this property by using a macro or Visual Basic code. You can also set this property using the Shortcut option in the Startup dialog box, available by clicking Startup on the Tools menu. This is the easiest way to set this property.

Remarks

If you are setting the StartupShortcutMenuBar property, you should not use a SetValue action in the AutoExec macro to set the ShortcutMenuBar property for the Application object. Since Microsoft Access runs the AutoExec macro after it parses the startup properties, the global shortcut menu set in the AutoExec macro would replace the shortcut menu set in the StartupShortcutMenuBar property.

You can also create custom shortcut menu bars using the ShortcutMenuBar property for forms, reports, and controls. These custom shortcut menu bars are displayed when you use the right mouse button to click in a specific form, report, or control.

If this property is blank, Microsoft Access displays the built-in shortcut menu bar.

This property’s setting does not take effect until the next time the application database opens.

Setting this property has the same effect as setting the ShortcutMenuBar property of Application object (except the ShortcutMenuBar property setting takes effect immediately).

See Also

AllowBreakIntoCode Property, AllowFullMenus Property, AllowShortcutMenus Property.