Applies To
Database object.
Description
You can use the AllowBuiltInToolbars property to specify whether or not the user can display Microsoft Access built-in toolbars. For example, you can use the AllowBuiltInToolbars property to prevent a user from seeing a Microsoft Access built-in toolbar within a database application.
Setting
The AllowBuiltInToolbars property uses the following settings.
Setting
Description
True (–1)
Allow built-in toolbars to be displayed.
False (0)
Don't allow built-in toolbars to be displayed.
The easiest way to set this property is by using the Allow Built-in Toolbars option in the Startup dialog box, available by clicking Startup on the Tools menu. You can also set this property by using a macro or Visual Basic.
To set the AllowBuiltInToolbars property by using a macro or Visual Basic, you must first either set the property in the Startup dialog box once or create the property by using the CreateProperty method and append it to the Properties collection of the Database object.
Remarks
You can show and hide specific toolbars by using the Customize dialog box, available by pointing to Toolbars on the View menu and clicking Customize.
If you click Toolbars on the View menu when the AllowBuiltInToolbars property is set to False, Microsoft Access will show only custom toolbars in the Toolbars submenu. If you click Customize in this submenu, the Customize dialog box shows the built-in toolbars, but you can't select them or customize them.
The user can modify built-in toolbars only when the AllowToolbarChanges property is set to True and the AllowBuiltInToolbars property is set to True.
If the AllowBuiltInToolbars property is set to False, you can't use the ShowToolbar action to display a built-in toolbar.
This property's setting doesn't take effect until the next time the application database opens.
See Also
AllowBreakIntoCode property, AllowToolbarChanges property, CreateProperty method ("DAO Language Reference"), Properties collection ("DAO Language Reference"), ShowToolbar action.
Example
See the AllowBreakIntoCode property example.