Hello,
I'm working in Crystal 10.
I've written a subreport which shows me the last date an item was shipped
In my main report I now want to exclude all items which have been shipped in the last 6 months. I couldn't work out a formula so I created a parameter field where the user enters a cut off date.
I have linked the parameter field of the main report to the lastdate field of the subreport.
So now I have the cut off date parameter field in my subreport.
How do I now exclude dates which are later then my cut off date?
I tried the code below in the record selection editor but it won't allow me to add @lastdate.
Any help is much appreciated.
I'm working in Crystal 10.
I've written a subreport which shows me the last date an item was shipped
Code:
shared numbervar lastdate;
lastdate:= Maximum ({ICHIST.TRANSDATE});
pwformatdate(lastdate)
In my main report I now want to exclude all items which have been shipped in the last 6 months. I couldn't work out a formula so I created a parameter field where the user enters a cut off date.
I have linked the parameter field of the main report to the lastdate field of the subreport.
So now I have the cut off date parameter field in my subreport.
How do I now exclude dates which are later then my cut off date?
I tried the code below in the record selection editor but it won't allow me to add @lastdate.
Code:
(@lastdate) < {?Pm-?SelectCutOffDate}
Any help is much appreciated.