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

Cahnge Font weight in a report

Status
Not open for further replies.
Oct 10, 2001
4
0
0
CA
Hi

i want to change the font weight of the detail line if a encouter a certain number...


Detail
Ex: my line : [week] [description] [product]

If the [week] number of the detail line = 40 then put the font weight to Bold for the entire line

thanks
 
use the Detail's OnFormat Event
If [week] = 40 then
TextBoxName.FontWeight = 700
Else
TextBoxName.FontWeight = 400
End if

PaulF
 
Thanks Paul

it works well with a constant

but the number 40 in my example is in a Forms...

and it doesnt seem to work with the code i added

If [week] = [forms]![hello].[w3] then

TextBoxName.FontWeight = 700
Else
TextBoxName.FontWeight = 400
End if


thanks again


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top