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

Adding multiple subreport totals on main report 1

Status
Not open for further replies.

ginaburg

Technical User
Jul 14, 2004
62
US
I am using crystal reports 8.5 with sql data.

I have 2 subreports with totals on each of them.
Here are the 2 subreport totals:
Subreport 1 total:
WhilePrintingRecords;
Shared CurrencyVar June :=Sum ({@June})

Subreport 2 total:
WhilePrintingRecords;
Shared CurrencyVar JuneEE :=Sum ({@June})

Can I create one field on the main report to add these together?
This is what I have now as 2 seperate formulas and then a third to add these together. Can I do this in one step?
WhilePrintingRecords;
Shared CurrencyVar June;
June

WhilePrintingRecords;
Shared CurrencyVar JuneEE;
JuneEE

Thanks
Gina
 
After the subreports have executed you can use them in the main report, meaning in a section after the subreports.

Try:

WhilePrintingRecords;
Shared CurrencyVar June;
Shared CurrencyVar JuneEE;
June+JuneEE

-k
 
Thank you, that will save me a lot of work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top