Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shared Value Problem

Status
Not open for further replies.

nerdlinger

Programmer
Apr 8, 2001
14
US
I am having a problem with a shared variable
I have a subreport(placed in the Report footer of the main report and suppressed) that I calculate monthly values in and I need to get them into the group footer of the main report. I keep getting a zero on the report when I do the following...what am I doing wrong

In the subreport I have this
-------------------------------------
@SendQ1--placed in the report footer section
This is @SendQ1
WhilePrintingRecords;
Shared NumberVar MTDQ1 :={@subpctQ1};
-------------------------------------
@subpctQ1 is:
{#RTotalQ1}%{#SATotalCount}
-------------------------------------

In the main report I have
@GetQ1
WhilePrintingRecords;
Shared NumberVar MTDQ1;
--------------------------------------------
I place @GetQ1 where I need it and all I get is 0.00? Any help on this would be more than appreciated.

thanks
 
You can't suppress the subreport. If it is suppressed, it won't run. You can make it invisible, but not suppressed. Ken Hamady
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top