Hi
Using CR8.5 I have teh following expression in the formula for a report field;
if isnull ({RJOBUD.Date1} and {RJOBUD.Date3}and{RJOBUD.Date4}) then ('FIRST') else
if CurrentDate-({RJOBUD.Date1}or{RJOBUD.Date3}or{RJOBUD.Date4}) > 7 then ('REPEAT') else {RJOBUD.Date1}
basically I have 3 dates fields, the output of the formula field is dependant on the contents of the date fields. There are 3 possible values for the formula field based on the following conditions;
1. If all 3 are empty then I would like the expression to be FIRST.
2. At times some of the fields will contain dates if ALL of the dates present are greater than 7 days old I would like the field expression to be REPEAT.
3. If one of the dates present is not more than 7 days old I would like the expression to equal the most current date.
the first half of the formula is fine but the second half is wrong - the last bit (ie. slecting the most current date) I wouldn't know how to do anyway ....
as always - ideas welcome,
thanks
Using CR8.5 I have teh following expression in the formula for a report field;
if isnull ({RJOBUD.Date1} and {RJOBUD.Date3}and{RJOBUD.Date4}) then ('FIRST') else
if CurrentDate-({RJOBUD.Date1}or{RJOBUD.Date3}or{RJOBUD.Date4}) > 7 then ('REPEAT') else {RJOBUD.Date1}
basically I have 3 dates fields, the output of the formula field is dependant on the contents of the date fields. There are 3 possible values for the formula field based on the following conditions;
1. If all 3 are empty then I would like the expression to be FIRST.
2. At times some of the fields will contain dates if ALL of the dates present are greater than 7 days old I would like the field expression to be REPEAT.
3. If one of the dates present is not more than 7 days old I would like the expression to equal the most current date.
the first half of the formula is fine but the second half is wrong - the last bit (ie. slecting the most current date) I wouldn't know how to do anyway ....
as always - ideas welcome,
thanks