Table of contents
Collapse the table of content
Expand the table of content

CommandButton.FontBold Property (Access)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

You can use the FontBold property to specify whether a font appears in a bold style in the following situations:

  • When displaying or printing controls on forms and reports.

  • When using the Print method on a report.

Read/write Boolean.


expression. FontBold

expression A variable that represents a CommandButton object.


The FontBold property uses the following settings.

TrueThe text is bold.
False(Default) The text isn't bold.

To use the FontBold property on a report, first create a Print event procedure that prints the desired text.

A font's appearance on screen and in print may differ, depending on your computer and printer.

The FontWeight property, which is available in the property sheet for controls, can also be used to set the line width for a control's text. 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.

FontBold = FalseFontWeight = Normal (400)
FontBold = TrueFontWeight = Bold (700)
FontWeight < 700FontBold = False
FontWeight > = 700FontBold = True


The following Print event procedure prints a report title and the current date in a bold style on a report at the coordinates specified by the CurrentX and CurrentY property settings.

Private Sub ReportHeader0_Print(Cancel As Integer, _ 
 PrintCount As Integer) 
 Dim MyDate 

 MyDate = Date 
 Me.FontBold = True 
 ' Print report title in bold. 
 Me.Print("Sales Management Report") 
End Sub

See also


CommandButton Object

© 2018 Microsoft