Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Subreport grand Total Post Reply Post New Topic
Author Message
etchasako
Newbie
Newbie
Avatar

Joined: 05 Aug 2012
Location: Philippines
Online Status: Offline
Posts: 3
Quote etchasako Replybullet Topic: Subreport grand Total
     Posted: 05 Aug 2012 at 5:51pm
Hi

Im new to this crystal report any can help me figure this out

I have 3 subreport in 1 report

3 those subreport have already Total
formula of each report1 {equip.qty}*{equip.price}
formula of each report2{material.qty}*{material.price}
formula of each report3{manpower.qty}*{manpower.price}

I'm having a problem displaying all of those 3 total in one Grand total in Main report

how can i do that?


Edited by etchasako - 05 Aug 2012 at 5:52pm
IP IP Logged
etchasako
Newbie
Newbie
Avatar

Joined: 05 Aug 2012
Location: Philippines
Online Status: Offline
Posts: 3
Quote etchasako Replybullet Posted: 05 Aug 2012 at 6:02pm
Up
IP IP Logged
etchasako
Newbie
Newbie
Avatar

Joined: 05 Aug 2012
Location: Philippines
Online Status: Offline
Posts: 3
Quote etchasako Replybullet Posted: 05 Aug 2012 at 7:09pm
help
IP IP Logged
Sastry
Moderator
Moderator
Avatar

Joined: 16 Jul 2012
Online Status: Offline
Posts: 537
Quote Sastry Replybullet Posted: 06 Aug 2012 at 12:15am
Hi
 
Yes, it is possible by sharing the values using Shared Variables :
 
--Go in your sub report 1 and create a formula like :
 
Whileprintingrecords;
Shared Numbervar Val;
val:= {equip.qty}*{equip.price};
 
In Sub report 2
 
Whileprintingrecords;
Shared Numbervar Val1;
val1:= {material.qty}*{material.price}
In sub report 3
 
Whileprintingrecords;
Shared Numbervar Val2;
val2:= {manpower.qty}*{manpower.price}
 
Now create formula in your main report like :
 
WhileprintingRecords;
Shared numbervar val;
Shared numbervar val1;
Shared numbervar val2;
Numbervar Total;
Total:=val+val1+val2;
 
This will display the total of above three sub report formulas.
 
 
 
Thanks,
Sastry
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