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!

If then Else formula generating error in a subreport

Status
Not open for further replies.

Suzette

Technical User
Aug 23, 2001
10
US
I wish to use the following formula in a subreport:

If {Opportunity_User_Field_Data.char_value} = "0" then "No" else
if {Opportunity_User_Field_Data.char_value} = "1" then "Yes"

However, when I try to save this formula in the subreport, I am getting the following error message:

a statement is expected here _then "No"

Any ideas? This formula seems to work fine in the main report.
 
Is this field available in the subreport?
What if you make the formula just the field, all by itself? Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
If {Opportunity_User_Field_Data.char_value} = "0" then "No" else "Yes"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top