Form.MenuBar Property (Access)

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

Version Added: Access 2007

expression .MenuBar

expression A variable that represents a Form object.

When opening a form in Microsoft Access 2010 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 Add-Ins tab.