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!

Conditional Bold of Fields During Printing

Status
Not open for further replies.

RangerFan

MIS
May 4, 2000
61
US
What I would like to do is the following:

During the report exection I would like to change the font weight of a given report item, based on the value of another report item. This would be done on a line by line basis.

Example:

FIELD1 FIELD2 FIELD3
12345 ABCD (bold) XXXX
13446 ABCD XXXX
13678 ABCD XXXX
12345 ABCD (bold) XXXX
19445 ABCD XXXX

If FIELD1 = 12345 Then
the contents of FIELD2 (ABCD) is bolded
Else
the contents of FIELD2 (ABCD) is normal
End-If

I hope that makes sense, and as always, any help is greatly appreciated.
 
In the onformat event of the detail line put your code

If FIELD1 = 12345 Then
FIELD2.fontweight = 700
Else
FIELD2.fontweight = 400
EndIf


Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top