Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Sub value in running total in main Post Reply Post New Topic
Author Message
jbalbo
Senior Member
Senior Member
Avatar

Joined: 17 Feb 2011
Online Status: Offline
Posts: 219
Quote jbalbo Replybullet Topic: Sub value in running total in main
     Posted: 11 Dec 2012 at 7:44am
HI,

I am passinga value from a subreport to the main report but then want to using the passed value in a runnung total formula, but wont accept.
Does anyone know of a workaround?

Thanks
Joe

IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 11 Dec 2012 at 9:01am
you have to use another set of shared variable formulas in the main report
IP IP Logged
jbalbo
Senior Member
Senior Member
Avatar

Joined: 17 Feb 2011
Online Status: Offline
Posts: 219
Quote jbalbo Replybullet Posted: 11 Dec 2012 at 11:17am
so i have this formula in the subreport
WhilePrintingRecords;
Shared StringVar activeevent :=
if {#RTotal1}>0 then 'Yes'
else if {#RTotal1}=0 then 'No'


this in the GF2 in main
WhilePrintingRecords;
Shared stringVar activeevent;
activeevent+activeevent

and i see my data
but i have a running total
that uses
DatePart ("d",{RECORDED_SERVICE.STARTTIME}) =1

and  I want to add {@activeevent}='no'




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