Print Page | Close Window

pass values from one subreport to the other

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=20982
Printed Date: 03 May 2024 at 6:37am


Topic: pass values from one subreport to the other
Posted By: jjthed
Subject: pass values from one subreport to the other
Date 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!!



Replies:
Posted By: lockwelle
Date 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


Posted By: sharona
Date 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



Print Page | Close Window