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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to conditionally format controls in Report

Status
Not open for further replies.

Chuck59

Technical User
Aug 14, 2001
10
0
0
US
This seems a simple question: I want to conditionally change the fontweight to "Bold"(700) on a control ([txtNick]) when another boolean control ([NickError]) is true, in the detail section of my report. [txtNick] is a calculated string. Numerous variations of the reference to [txtNick] do not bring up ANY formatting property. This is Access 2000, and I am used to Access97. What am I doing wrong?
 
In the OnFormat event of the section containing txtNick place this code:

If NickError = True Then
txtNick.FontWeight = 700 'Make it bold
Else
txtNick.FontWeight = 400 'Make it normal
End If Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top