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

Conditionally format border 1

Status
Not open for further replies.

Bennie47250

Programmer
Nov 8, 2001
515
US
Using Crystal 7.0

I have a number field that I want to conditionally have a bottom border. In the X2 field I have entered the condition {MyTable.MyField} = "D" and Crystal tells me "The Formula result must be a number" I have used the same condition on a string field without any issues. How can I work around this?

Thanks
 
You need a formula like this:

if {MyTable.MyField} = "D" then
crSingleLine else //code = 1
crNoLine //code = 0

You can use either the number or the text in XI. Not sure what CR 7 allows.

-LB
 
Thanks, the code ended up being
if {MyTable.MyField} = "D"
then 1
else 0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top