Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Shared variable Post Reply Post New Topic
Author Message
bluelake
Newbie
Newbie
Avatar

Joined: 08 Jul 2010
Online Status: Offline
Posts: 24
Quote bluelake Replybullet Topic: Shared variable
    Posted: 02 Mar 2012 at 7:18am
I have a formula in my subreport that I would like to use as a parameter in my main report.  I know I can pass a parameter to the main report through a shared variable, but I can't quite figure out the formulas and where they go.
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 02 Mar 2012 at 7:23am
I do not believe you can use a result from a subreport to be a parameter (filter) for the main report.  A round about way would have two subreports where the main report is just a holding spot for the subreports. So you can put the first subreport in lets say the main report header and it will return (via a shared variable) a value, then in the main report footer you could have a second subreport that would use that shared variable as a parameter (filter) for the subreport.  I have never tried this, but I believe it would work.  It is kinda sloppy, but it might work.  Of course there may be a much better solution (help me out here!!).
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.