I've searched this a few times but it seems to be clear as mud to me. Using Crystal XI and SQL Server.
The report I'm working on is of all active customer equipment and the leases and contracts that are active for each respective machine. My main report and subeport are grouped by customer zip code. My subrport is in the details section of the main report.
In the subreport there is a points system for each machine -
{@LeaseCount} //count of active leases
{@EquipContractCount} //count of active service contracts
{@HPCount) //count of HP contracts
{@ITCount) //count of IT contracts
{@Sum} = {@EquipContractCount}+{@HPCount}+{@IT Count}+{@LeaseCount}
Here's what I need to accomplish -
I need a total of the {@sum} (which I currently have in the subreport as a running total {#Total Points}) placed in the main report totaling & resetting on each group level. I know that I need to do this as a shared variable which is where I get stuck. I have the variable written in the subreport as:
WhilePrintingRecords;
Shared numberVar TotalPoints := {#Total Points}
and in the main report as
WhilePrintingRecords;
Shared numberVar Total Points;
Total Points
But I have no idea if they are correct and then where to put them in the report. I know that you may need more data information to help me but I didn't want to include too much! I appreciate any help on this!
The report I'm working on is of all active customer equipment and the leases and contracts that are active for each respective machine. My main report and subeport are grouped by customer zip code. My subrport is in the details section of the main report.
In the subreport there is a points system for each machine -
{@LeaseCount} //count of active leases
{@EquipContractCount} //count of active service contracts
{@HPCount) //count of HP contracts
{@ITCount) //count of IT contracts
{@Sum} = {@EquipContractCount}+{@HPCount}+{@IT Count}+{@LeaseCount}
Here's what I need to accomplish -
I need a total of the {@sum} (which I currently have in the subreport as a running total {#Total Points}) placed in the main report totaling & resetting on each group level. I know that I need to do this as a shared variable which is where I get stuck. I have the variable written in the subreport as:
WhilePrintingRecords;
Shared numberVar TotalPoints := {#Total Points}
and in the main report as
WhilePrintingRecords;
Shared numberVar Total Points;
Total Points
But I have no idea if they are correct and then where to put them in the report. I know that you may need more data information to help me but I didn't want to include too much! I appreciate any help on this!