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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Totals across subreports

Status
Not open for further replies.

tfernand

Technical User
Mar 3, 2004
11
US
Hi All,
How do I pass a total value from a subreport to the main report. The idea is to take the totals from the subreports and total it up in the main report. If there's a better way of doing this other than what I'm thinking please let me know,
thanks,
-- Tony
 
You must use a shared variable to do this. For example in the subreport:

WhilePrintingRecords;
Shared Numbervar Tot:=sum({YourField})

In the main report:
WhilePrintingRecords;
Shared Numbervar Tot;


Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top