I use a variable in a report. The variable is passed from a subreport to the main report. I noticed that the value for the final variable is displayed on the main report when the sub report is visible (not Suppressed). The variable becomes zero when the sub report is not visible (Suppressed).
I don't want to show the details of the sub report, but only want to show the final value of the variable in the main report.
Below is the coding for the variable:
WhilePrintingRecords;
Shared NumberVar MDNCount;
if {?Pm-MA.MATTER_NO} = {MA.MATTER_NO} and {MA.ZSTART_DATE} = {?Pm-Max of MA.ZSTART_DATE} and {MA.ZHANDLING} in ['M','D','N']
then MDNCount := MDNCount + 1 else MDNCount
Below is the formula that used to display the value of the variable in the main report:
WhilePrintingRecords;
Shared NumberVar MDNCount
Version of Crystal Reports is 9.0
Thanks in Advance,
William
I don't want to show the details of the sub report, but only want to show the final value of the variable in the main report.
Below is the coding for the variable:
WhilePrintingRecords;
Shared NumberVar MDNCount;
if {?Pm-MA.MATTER_NO} = {MA.MATTER_NO} and {MA.ZSTART_DATE} = {?Pm-Max of MA.ZSTART_DATE} and {MA.ZHANDLING} in ['M','D','N']
then MDNCount := MDNCount + 1 else MDNCount
Below is the formula that used to display the value of the variable in the main report:
WhilePrintingRecords;
Shared NumberVar MDNCount
Version of Crystal Reports is 9.0
Thanks in Advance,
William