Share via


FontWeight Property [Access 2003 VBA Language Reference]

Use the FontWeight property to specify the line width that Windows uses to display and print characters in a control. Read/write Integer.

expression.FontWeight

expression Required. An expression that returns one of the objects in the Applies To list.

Remarks

The FontWeight property uses the following settings.

Setting Visual Basic
Thin 100
Extra Light 200
Light 300
Normal 400
Medium 500
Semi-bold 600
Bold 700
Extra Bold 800
Heavy 900

Note  You can set this property by using the control's property sheet , a macro , or Visual Basic . You can also click Bold on the Formatting (Form/Report) toolbar. This sets the FontWeight property to Bold (700).

You can set the default for this property by using a control's default control style or the DefaultControl property in Visual Basic.

A font's appearance on screen and in print may differ, depending on your computer and printer. For example, a FontWeight property setting of Thin may look identical to Normal on screen but appear lighter when printed.

The FontBold property, which is available only in Visual Basic and macros, can also be used to set the line width for a control's or report's text to bold. The FontBold property gives you a quick way to make text bold; the FontWeight property gives you finer control over the line width setting for text. The following table shows the relationship between these properties' settings.

If Then
FontBold = False FontWeight = Normal (400)
FontBold = True FontWeight = Bold (700)
FontWeight < 700 FontBold = False
FontWeight > = 700 FontBold = True

Applies to | ComboBox Object | CommandButton Object | Label Object | ListBox Object | TabControl Collection | TextBox Object | ToggleButton Object

See Also | FontBold Property | FontItalic Property | FontName Property | FontSize Property | FontUnderline Property