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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sharing values within Crystal Sub Reports 1

Status
Not open for further replies.

dasiga222

IS-IT--Management
Sep 22, 2003
68
US
Hi
I am using Crystal Reports 10

I am trying to share variable values within sub Reports
I am having two Sub Reports inside a main report. They are
Report A and Report B
In Report A, I have a variable, which is as follows


Shar_Var

whileprintingrecords;
SHARED numbervar shar_var := 10;


I need to share this value in Report B

In Report B, I am inserting a variable with a same name

Shar_var
whileprintingrecords;
SHARED numbervar shar_var ;


But in report B, I am getting the value of 0 and not 10
Can any one please suggest a remedy

Thanks
 
Where are these subreports?

Report B must be in a section AFTER report A.

Your syntax is fine, so the problem lies elsewhere.

-k

 
Hi Synapsevampire

Thanks for your response
Actually ..Both reports are in the same group
They are in Group header 1 of Main report

Thanks
 
Right click the GH1 and select insert section below and place SubReport B in the new section,.

-k
 
Thanks Synapsevampire

Thanks a lot for your response.
It works
It is really nice of you

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top