You can use the AllowToolbarChanges property to specify whether or not your database allows users to customize toolbars, menu bars, and shortcut menus. For example, you can use the AllowToolbarChanges property to prevent users from deleting a toolbar button or an entire toolbar from your application.
Setting
The AllowToolbarChanges property uses the following settings.
Setting | Description |
---|---|
True (–1) | Allow changes to toolbars, menu bars, and shortcut menus. |
False (0) | Don't allow changes to toolbars, menu bars, and shortcut menus. |
The easiest way to set this property is by using the Allow Toolbar/Menu Changes 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 AllowToolbarChanges 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 in the following ways:
Remarks
Setting the AllowToolbarChanges property to False prevents users from modifying any toolbars, menu bars, and shortcut menus. It disables the Customize subcommand of the Toolbars command on the View menu and the Customize command that's displayed when you right-click a toolbar or the menu bar.
If you set this property to False, the user can still move, size, and dock toolbars and the menu bar.
The user can modify built-in toolbars only when the AllowToolbarChanges property is True and the AllowBuiltInToolbars property is True.
This property's setting doesn't take effect until the next time the database opens.