Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: how to pass parameter (number) to subreport Post Reply Post New Topic
Author Message
skyfox
Newbie
Newbie
Avatar

Joined: 14 Oct 2009
Location: Malaysia
Online Status: Offline
Posts: 8
Quote skyfox Replybullet Topic: how to pass parameter (number) to subreport
     Posted: 14 May 2010 at 4:08pm
I want to pass a parameter (number) to a subreport.
i have a sub total in main report and i need to pass this value to sub report to have another calculation.
example:

in main report:

A-B = C
C is Sub Total.

in Sub report:

i need to use C + D = E (Grand total).

may i know how to do it?
anyone can help me on this issue?
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 17 May 2010 at 3:17am
set the value that to pass to the subreport as a shared variable in the main report, then access it as a shared variable of the same name in the subreport.
 
HTH
IP IP Logged
skyfox
Newbie
Newbie
Avatar

Joined: 14 Oct 2009
Location: Malaysia
Online Status: Offline
Posts: 8
Quote skyfox Replybullet Posted: 24 May 2010 at 5:18pm
thanks, i able to set it now with your advice.LOL
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