I passed a shared variable from a subreport to the main report. The shared varialbe is working correctly but I am not having success in getting my row to supress based on the value of the shared variable. I am using Crystal 8.5.
The shared variable must be displaying the value from the previous subreport, since you have the shared variable positioned before the subreport which is creating the shared variable.
The shared variable must be displayed in a section below the one in which the subreport is executing, e.g., GH#2f. You should also have a formula in the main report in GF#2 that resets the shared variable, as in:
whileprintingrecords;
shared numbervar x := 0;
Note that to suppress the same section that you have placed the subreport in, you would have to add the subreport again in a section above GH#2e, e.g., Gh#2d, so that the shared variable could be used for suppression.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.