Report Design
 Crystal Reports Forum : Crystal Reports .NET 2003 : Report Design
Message Icon Topic: pass values from one subreport to the other Post Reply Post New Topic
Author Message
jjthed
Newbie
Newbie


Joined: 15 Aug 2014
Online Status: Offline
Posts: 20
Quote jjthed Replybullet Topic: pass values from one subreport to the other
    Posted: 15 Aug 2014 at 11:07am
Hi,

I am very new to Crystal Report.  I have tried so many times myself to use the shared variables.  But I always got a null value when I run. I really hope somebody here could give me some advise on this.

I need to use a running total value from sub-report A and use it on the sub-report B.  Can somebody give me a detailed step to accomplish this?

Thanks!!
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 25 Aug 2014 at 5:09am
1. subreport a needs to run before b.
2. in subreport a create a formula like:
shared numbervar x := {running total}
""//will hide the assignment in the subreport

3. in subreport b create a formula like:
sharede numbervar x

you should see the value from subreport a displayed in subreport b


HTH
IP IP Logged
sharona
Senior Member
Senior Member
Avatar

Joined: 16 Oct 2008
Location: United States
Online Status: Offline
Posts: 255
Quote sharona Replybullet Posted: 06 Jul 2015 at 2:51am
make sure you place the shared variable below the sub report or your value will be displayed as zero
sharona
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.