Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Passing a total from subreport to main report Post Reply Post New Topic
Author Message
danahawk
Newbie
Newbie


Joined: 28 Apr 2015
Online Status: Offline
Posts: 11
Quote danahawk Replybullet Topic: Passing a total from subreport to main report
    Posted: 26 Feb 2016 at 6:51am
Does anyone have an simple example of passing a total from subreport to main report?
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 29 Feb 2016 at 4:34am
I do not have a ready example.  But here is basically the procedure.  Have a formula in the sub-report that assigns the total to a shared variable.  Then in the the main report have another formula that has the same same shared variable defined and put that formula in some section following the section the sub-report is in.  See the following

In sub-report
Not sure if you just need a number or currency.  Also not sure how the total is defined.
shared numbervar somevariable := total;

In Main report

shared numbervar somevariable;
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.031 seconds.