Form.MenuBar Property

Access Developer Reference

Specifies a custom menu to display for a form. Read/write String.

Version Information
 Version Added:  Access 2007

Syntax

expression.MenuBar

expression   A variable that represents a Form object.

Remarks

When opening a form in Microsoft Office Access 2007 that is part of a database that was created in an earlier version of Microsoft Access, the specified menu bar will be displayed differently depending on the curent settings of the AllowFullMenus and AllowBuiltInToolbars properties. If the AllowFullMenus and AllowBuiltInToolbars properties are set to False, the specified menu bar will replace the Ribbon as the default set of commands available to the user. If the AllowFullMenus or AllowBuiltInToolbars property is set to True, then the specified menu bar is displayed on the Ribbon's Add-Ins tab.