At least in Crystal XI, you just create a formula in both the main report and the subreport with the variable names the same, and set to shared (ie shared datevar optCount;).
To pass it as positive all of the time, I think in the subreport formula you could use abs(). So for example in the main report I have the formula Options Remaining:
<pre>
shared numbervar optCount;
optCount;
</pre>
and in the subreport i have formula Count Available Options
<pre>
shared numbervar optCount;
optCount:=abs({#Count Available Options})
</pre>
Let me know if that helps.
Last Wiki Answer Submitted: May 22, 2009 6:18 pm by Jade1977440 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.