Hi,
I am trying to share a variable from a subreport to the main report, but when I add the shared variable to the main report, the last entry from the subreport keeps repeating in every line.
Subreport shared variable
@SharVar
whileprintingrecords;
shared numbervar x := (DistinctCount ({app_quality_control.jobno}, {@PersonResponsible}))
Main Report formula
@SharVar QADetails
whileprintingrecords;
shared numbervar x
I have placed the subreport the report header, but even if I move it around it doesn't change the value.
I am using CR 2008.
I am trying to share a variable from a subreport to the main report, but when I add the shared variable to the main report, the last entry from the subreport keeps repeating in every line.
Subreport shared variable
@SharVar
whileprintingrecords;
shared numbervar x := (DistinctCount ({app_quality_control.jobno}, {@PersonResponsible}))
Main Report formula
@SharVar QADetails
whileprintingrecords;
shared numbervar x
I have placed the subreport the report header, but even if I move it around it doesn't change the value.
I am using CR 2008.