Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing a Shared Variable Problem

Status
Not open for further replies.

spelhank

Technical User
Sep 12, 2003
14
US
I am trying to pass a shared variable from one subreport to another. I have the order of calculation correct, because the sharing works, however, one report runs before the other report, and I want the second report to display using the passed variable from the 1st report.

I do not want the first report to display, but when I suppress it, or suppress the data in it, the variable does not pass correctly. Any help would be appreciated. I am using Crystal 8.5.

spelhank
 
Suppressing should not be a problem...unless you are suppressing the first subreport itself...if this is the case then the subreport doesn't run at all.

The subreports should be in separate sections of the main report...the Subreport#1 ahead of Subreport#2.

You can suppress Sub#1 but not in the main report....rather you suppress the sections of the subreport in the subreport itself and suppress the borders of the subreport in the main report to make it invisible.

If this is not your problem then you will have to describe the report and how the suppression in being done on the shared variable...in addition to how the shared variable is initialized and displayed.

Jim Broadbent

The quality of the answer is directly proportional to the quality of the problem statement!
 
In Crystal 8.5, stuff that you suppress may treated as if it had not run, and this is always true with subreports. You can make an subreport very small, to get the same effect. Or give it no visible output.

Madawc Williams
East Anglia, Great Britain
 
Thanks for the help. I got it to work by making it very small. Great!
 
Suppressing works.

Hence you'll not get results from a shared variable.

Hiding and shrinking are fine.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top