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!

Format based on Formula result 1

Status
Not open for further replies.

Pete271

Instructor
Feb 16, 2005
61
GB
Hi

I'm using CR8.5 and an Access Database.

I have the following formula

if {CnPrProp_1.CnPrProp_1_Amount_Asked}=$0.00 then {CnPrProp_1.CnPrProp_1_Source}
else totext({CnPrProp_1.CnPrProp_1_Amount_Asked}, 0)

what i would like is if the forumla returns the 'Amount Asked' for the field to be in bold. But I can work out what to put in the X+2 box in format field

Thanks
Peter
 
Right click the field, and choose Format Field.
Under the Format tab, click the X+2 button to the right of Style.
In the editor, add the following logic:

if {CnPrProp_1.CnPrProp_1_Amount_Asked}<>0
then 1
else 0

Save, Close, and Test.

The decode is as follows:
0 - Regular
1 - Bold
2 - Italic
3 - Bold Italic

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top