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!

Help with a formula in CR 8.5

Status
Not open for further replies.

ccclsi

MIS
Jan 11, 2002
11
US
Hi,

I have a report where i would like to have 1 column that will look at 3 fields, (part.fabricated, part.purchased, and part.detail_only) these fields have either a "Y" or "N". What i would like to do is have a formula that says "if part.fabricated = "Y" then "F" else part.purchased ="Y" then "P", else part.detail_only = "Y" then D,.

Is this doable?
 
YOu write a formula exactly like you have defined.

However, Crystal does not like NULLS if any of those filed can be null the whole formula will fail.

YOu could create 3 test formula first

@Fab
If isnull(part.fabricated) then 'N' else part.fabricated

Repeat for other fileds and then use these formula in your If .. then..else formula.

Insert that into your detail line.

Ian
 
I'm wondering what you expect the result to be--you realize that once one of the fields meets the criterion, the remaining fields will not be evaluated.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top