Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: running total for subreport in main report Post Reply Post New Topic
Author Message
mein
Newbie
Newbie
Avatar

Joined: 25 Aug 2009
Location: Germany
Online Status: Offline
Posts: 5
Quote mein Replybullet Topic: running total for subreport in main report
     Posted: 29 Oct 2009 at 3:36am
im having problem to sum the total of item in main report. I have 4 subreport. sum of item in group is successful but now im stuck with having the total of the item of all subreport. anyone can help?

Edited by mein - 02 Nov 2009 at 8:23pm
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 29 Oct 2009 at 6:17am
create a formula in your subreports that use a shared variable and increment it in each subreport...depending on what you want...
shared numbervar rpt1:= some CR expression
 
you can either update this one shared variable for all of you reports, reporting back the total or each subreport can have its own variable, then to display/manipulate them in the main report just create a formula that access the same variable:
shared numbervar rpt1  //this will display the result from subreport 1 in the main report.
 
HTH
IP IP Logged
mein
Newbie
Newbie
Avatar

Joined: 25 Aug 2009
Location: Germany
Online Status: Offline
Posts: 5
Quote mein Replybullet Posted: 02 Nov 2009 at 8:29pm
i had do shared value in each subreports but i got the qty for the last line in report footer.
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum