I have a report where I have a subreport in GH1. Subreport is transaction list for a particular item where I get the min of transaction date and max of transaction date. I want to calculate the difference and pass it along to the main report. In the sub I have a formula
Shared numberVar daysdiff := {@diffminmax};
@Diffminmax is a formula
Maximum ({TABLE.TRANSDATE})-Minimum({TABLE.TRANSDATE})
In my main report I have a formula
Shared numberVar daysdiff;
The subreport is in GH1, I have other fields in Detail line of main report. I want to suppress both the GH1 section and the DETAIL section of the main report if the value passed from the subreport is less than say 25 days. I can pass the variable fine but I can't seem to suppress the sections based on the value i'm passing... any thoughts?
Shared numberVar daysdiff := {@diffminmax};
@Diffminmax is a formula
Maximum ({TABLE.TRANSDATE})-Minimum({TABLE.TRANSDATE})
In my main report I have a formula
Shared numberVar daysdiff;
The subreport is in GH1, I have other fields in Detail line of main report. I want to suppress both the GH1 section and the DETAIL section of the main report if the value passed from the subreport is less than say 25 days. I can pass the variable fine but I can't seem to suppress the sections based on the value i'm passing... any thoughts?