Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional formating in Access 97 report 1

Status
Not open for further replies.

bmldev

Technical User
May 4, 2004
1
CA
When I print a report, I want to have a customers name formated bold on condition. The condition is in my table, "customers" ; if a YES/NO field in my customers record is yes, I want that customer's name on the report to be shown in bold print.
Any help is appreciated
 
Add the following code to the On Format event of the detail section of your report.

Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If YesNoField Then
    txtCustomer.FontBold = True
Else
    txtCustomer.FontBold = False
End If
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top