BeginGroup Property

Applies To

CommandBarButton object, CommandBarComboBox object, CommandBarControl object, CommandBarPopup object.

Description

True if the specified command bar control is at the beginning of a group of controls on the command bar. Read/write Boolean.

Specifics (Microsoft Access)

In Microsoft Access 97, you can use the Toolbar Control Properties dialog box for command bar controls to determine whether or not a control on a command bar is at the beginning of a group of controls. A separator bar is displayed before the control on the command bar. Display the Customize dialog box by pointing to Toolbars on the View menu and clicking Customize. For menu bar and toolbar controls, display the menu bar or toolbar, and then right-click the control whose BeginGroup property you want to set. For shortcut menu controls, select the Shortcut Menus check box on the Toolbars tab of the Customize dialog box, then find the shortcut menu control you want on the menu bar that's displayed and right-click the control. Click the Properties command. Select or clear the Begin A Group check box.

The separator bar that appears at the beginning of a group of controls isn't a control itself, and doesn't affect item counts or indexes in the CommandBarControls collection.

Example

This example sets the last control on the active menu bar to be at the beginning of its own group.

Set myMenuBar = CommandBars.ActiveMenuBar
Set lastMenu = myMenuBar.Controls(myMenuBar.Controls.Count)
lastMenu.BeginGroup = True