Customize a tab control

Microsoft Office Access 2003

Show All Show All

Customize a tab control

In form Design view, do one or more of the following:

Add, delete, or change the order of tabs

  • Right-click the border of the tab control, and then click Insert Page, Delete Page, or Page Order.

Change the tab order of controls on a page

  • Right-click the page, and then click Tab Order.

Specify whether the tab control can have more than one row of tabs

  • Double-click the edge of the tab control to display its property sheet, and then set the MultiRow property to Yes.

    If the MultiRow property is set to No, Microsoft Access truncates tabs that don't fit within the width of the control and adds a scroll bar.

Specify whether to display tabs or command buttons at the top of the tab control

  • Double-click the edge of the tab control to display its property sheet, and then set the Style property to Tabs, Buttons, or None.

    You might want to click None if you plan to use a command button outside of the tab control to determine which page of the tab control has focus.

Set the height of the tabs

  • Double-click the edge of the tab control to display its property sheet, and then type a value in the TabFixedHeight box.

    If the value is 0, each tab will be high enough to fit its contents.

Set the width of the tabs

  • Double-click the edge of the tab control to display its property sheet, and then type a value in the TabFixedWidth box.

    If the value is 0, each tab will be wide enough to fit its contents and, if there is more than one row of tabs, the width of each tab will increase so that each row of tabs spans the width of the tab control. If the value is greater than zero, all tabs have the identical width specified by this property.

Specify the font properties of the captions on tabs

  • Double-click the edge of the tab control to display its property sheet, and then set the FontName, FontSize, FontWeight, FontItalic, or FontUnderline property.

    You can't specify different settings for different tabs.

Specify the display text that appears on a tab

  • Double-click the tab for the page to display its property sheet, and then type the text in the Caption box.

    If you don't specify a caption, Microsoft Access uses the text in the Name property box.

Add a picture to a tab

  • Double-click the tab for the page to display its property sheet, click the Build button (...) next to the Picture box, and then select a picture in the Picture Builder.

    The picture appears to the left of the text specified in the Caption property. If you just want to display a picture and no text, enter a SPACEBAR space in the Caption property. Tab controls can contain bitmaps but not Microsoft Windows metafiles.

Note  For more information about a property, click the property box in the property sheet and press F1.