rpmel
Technical User
- Jan 8, 2009
- 9
Hi everyone!
Crystal XI help please?
I have a formula field (LEADTIME) that looks like this,
The idea being, have a look at the Vendor Record, for an Optional field called “LEADTIME” then, if it exists, return the value as a number, or, if it doesn’t exist use 0.
I get zero regardless of the value in the leadtime field. It seems to accept the formula, with no errors found, but ignores the IF/THEN, and just goes with ELSE?
Using the Record Selector to find only records with APVENO.OPTFIELD = leadtime won't work, as not all vendors have a leadtime specified - and for those, I want a zero displayed?
Does that make sense?
Crystal XI help please?
I have a formula field (LEADTIME) that looks like this,
Code:
WhileReadingRecords;
If {APVENO.OPTFIELD} = "LEADTIME" Then
ToNumber ({APVENO.VALUE}) Else
0
The idea being, have a look at the Vendor Record, for an Optional field called “LEADTIME” then, if it exists, return the value as a number, or, if it doesn’t exist use 0.
I get zero regardless of the value in the leadtime field. It seems to accept the formula, with no errors found, but ignores the IF/THEN, and just goes with ELSE?
Using the Record Selector to find only records with APVENO.OPTFIELD = leadtime won't work, as not all vendors have a leadtime specified - and for those, I want a zero displayed?
Does that make sense?