Label Object [Access 2003 VBA Language Reference]


This object corresponds to a label control. Labels on a form or report display descriptive text such as titles, captions, or brief instructions.

Labels have certain characteristics:

  • Labels don't display values from fields or expressions.

  • Labels are always unbound.

  • Labels don't change as you move from record to record.

Control: Tool:
Control Control

Note   This control should not be confused with the Dynamic HTML label control used on a data access page. For information about a label control on a data access page, see Label Control (Data Access Pages).

A label can be attached to another control. When you create a text box, for example, it has an attached label that displays a caption for that text box. This label appears as a column heading in the Datasheet view of a form.

When you create a label by using the Label tool, the label stands on its own — it isn't attached to any other control. You use stand-alone labels for information such as the title of a form or report, or for other descriptive text. Stand-alone labels don't appear in Datasheet view.

Properties | BackColor Property | BackStyle Property | BorderColor Property | BorderStyle Property | BorderWidth Property | BottomMargin Property | Caption Property | ControlTipText Property | ControlType Property | DisplayWhen Property | EventProcPrefix Property | FontBold Property | FontItalic Property | FontName Property | FontSize Property | FontUnderline Property | FontWeight Property | ForeColor Property | Height Property | HelpContextId Property | Hyperlink Property | HyperlinkAddress Property | HyperlinkSubAddress Property | InSelection Property | IsVisible Property | Left Property | LeftMargin Property | LineSpacing Property | Name Property | NumeralShapes Property | OldBorderStyle Property | OnClick Property | OnDblClick Property | OnMouseDown Property | OnMouseMove Property | OnMouseUp Property | Properties Property | ReadingOrder Property | RightMargin Property | Section Property | ShortcutMenuBar Property | SmartTags Property | SpecialEffect Property | Tag Property | TextAlign Property | Top Property | TopMargin Property | Vertical Property | Visible Property | Width Property

Methods | Move Method | SizeToFit Method

Events | Click Event | DblClick Event | MouseDown Event | MouseMove Event | MouseUp Event

Parent Objects

Child Objects | Properties Object