Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8720

CR2011: Shared Variables

$
0
0

Hi everybody

 

I often use shared variables in Crystal Reports 2011, and never had any problems.

 

This time, I got stuck ... don't know why.

 

I have a Main report and 2 subreports S1, and S2

 

I want to pass a shared variable from S1 to S2

 

So, I create the shared variable (SeriousErrors_sv ) in each of Main, S1, and S2.

 

I copy and paste the formulas so that you see exactly what I typed, and spot my error

 

In S1:

SeriousErrors_sv

WhilePrintingRecords;

Shared NumberVar SeriousErrors_sv;

SeriousErrors_sv:= {usp_2014_101.Er5_TotalNoOfEr};

 

--------------------------------------

In S2

WhilePrintingRecords;

Shared NumberVar SeriousErrors_sv;

-------------------------------------------------

In Main:

SeriousErrors_sv

WhilePrintingRecords;

Shared NumberVar SeriousErrors_sv;

 

 

------------

I have placed each shared variable in the respective report.

 

S1 ---> Reads 9 (Correct)

S2 ---->Reads 0 (Bad)

Main ----> Reads 0 (Bad)

 

----------

It seems that S1 is not passing the SV to Main.

What could have gone wrong?

 

 

Thanks

Leon Lai


Viewing all articles
Browse latest Browse all 8720

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>