crystal report ver.10

35 pts.
Tags:
Crystal Reports
Crystal Reports 10
Crystal Reports Subreports
how to pass the value from subreport as positive number?
ASKED: May 21, 2009  6:36 PM
UPDATED: May 22, 2009  6:18 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following