I am working on an aging report and I am new to crystal. Here is the criteral that I have to meet.
1) RM00401.RMDTYPAL if this equals 7 or 9 and it falls in the 0 to 30 day range then the amount in CURTRXAM needs to be displayed as a negative in the report.
2) RM00401.RMDTYPAL if this is not equal to 7 or 9 and it falls in the 0 to 30 day range then the amount in CURTRXAM just needs to be displayed in the report.
3) If it does not meet the date requirement then I want it to return a zero.
Here is the formula I started to work with but I run in to errors, any help?
1) RM00401.RMDTYPAL if this equals 7 or 9 and it falls in the 0 to 30 day range then the amount in CURTRXAM needs to be displayed as a negative in the report.
2) RM00401.RMDTYPAL if this is not equal to 7 or 9 and it falls in the 0 to 30 day range then the amount in CURTRXAM just needs to be displayed in the report.
3) If it does not meet the date requirement then I want it to return a zero.
Here is the formula I started to work with but I run in to errors, any help?
Code:
Select Case {RM00401.RMDTYPAL}
Case Is = 7 or 9 and {RM20101.DOCDATE} in Aged0To30Days
Then {RM20101.CURTRXAM} * -1
Case Is <> 7 or 9 and {RM20101.DOCDATE} in Aged0To30Days
Then {RM20101.CURTRXAM}
Else 0
End Select