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

Text Box formatting Question

Status
Not open for further replies.

Ray1127

Programmer
Feb 22, 2002
231
US
I have a report in MS Access 2003. The query that the report is based on has a numeric field. The requirement is that if that numeric field exceeds the value 9.9 the value should be bolded.

In the Format event of the Detail Section I have the following line of code.

If me.txtclinicalvalue > 9.9 then me.txtclinicalvalue.fontweight = Bold else me.txtclinicalvalue.fontweight = normal

I set a breakpoint on that line of code and it does exactly what I want. However when the report completes and is displayed on the screen or printed that value is not bolded. What am I missing?
 
Duane, because I hadn't used conditional formatting for a long time and it didn't occur to me until after I posted yesterday. Used it to accomplish what I was trying to do. Thanks anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top