I have a report that has the following layout:
GH#1
GF#1A - SUBREPORT1
GF#1B - SUBREPORT2
GF#1C - SUBREPORT3
GF#1D - DISPLAYS SHARED VARIABLE TOTALS
In each report I have a shared variable which stores the total of a Running Total Field. The three shared variable have different names.
In Subreport1:
In subreport2:
In subreport3:
Within each subreport:
Each formula is placed in the group footer for the first grouping in that particular subreport. I reset the variable to zero at the group header of the first group in each subreport. If there is no data in the subreport, the shared variable stores a zero.
I am passing the value of the shared variable to the main report and placing it in GF#1D.
If the sum of all three shared variable is equal to zero...then I want to exclude the entire group from my main report.
I get the following message when attempting to do a group selection on the shared variables:
"The formula cannot be used because it must be evaluated later."
why is that, since the shared variables are being displayed on the main report in the very last group footer section?
Does someone have an idea on how to suppress, or group select based on the results of those shared variables?
Sandy
GH#1
GF#1A - SUBREPORT1
GF#1B - SUBREPORT2
GF#1C - SUBREPORT3
GF#1D - DISPLAYS SHARED VARIABLE TOTALS
In each report I have a shared variable which stores the total of a Running Total Field. The three shared variable have different names.
In Subreport1:
Code:
Whileprintingrecords;
shared numbervar SubRpt1SharedCount;
if isnull({#CountofDiags}) then SubRpt1SharedCount:= 0 else SubRpt1SharedCount :={#CountofDiags};
In subreport2:
Code:
Whileprintingrecords;
shared numbervar SubRpt2SharedCount;
if isnull({#CountofDiags}) then SubRpt2SharedCount:= 0 else SubRpt2SharedCount :={#CountofDiags};
In subreport3:
Code:
Whileprintingrecords;
shared numbervar SubRpt3SharedCount;
if isnull({#CountofDiags}) then SubRpt3SharedCount:= 0 else SubRpt3SharedCount :={#CountofDiags};
Each formula is placed in the group footer for the first grouping in that particular subreport. I reset the variable to zero at the group header of the first group in each subreport. If there is no data in the subreport, the shared variable stores a zero.
I am passing the value of the shared variable to the main report and placing it in GF#1D.
If the sum of all three shared variable is equal to zero...then I want to exclude the entire group from my main report.
I get the following message when attempting to do a group selection on the shared variables:
"The formula cannot be used because it must be evaluated later."
why is that, since the shared variables are being displayed on the main report in the very last group footer section?
Does someone have an idea on how to suppress, or group select based on the results of those shared variables?
Sandy