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

Can't see the Shared variable in main report - Need urgent help please

Status
Not open for further replies.

bandarna

Programmer
Jan 2, 2003
122
US
I have created a shared variable in my subreport using my summary field. See the code below:

whileprintingrecords;
shared currencyvar v_jul_comm_amt := sum ({@Jul_Comm_Amt})

and then I have used below formula Colum code in main report.
whileprintingrecords;
shared currencyvar v_jul_comm_amt

no luck, displaying zero main report. I am not sure what is wrong in the main report code.

I tested in subreport to see if it is populating jul_comm_amt, it is working.

Is there something wrong in calling shared variable in main report?

Note: sub report is not unlinked. Is that an issue to use shared variables between sub and main report.
Any quick response would be appreciated
 
A shared variable is only available in the section after the section which contains the subreport. Is that it?

I also think your mainframe access should be
Code:
whileprintingrecords;
shared currencyvar 
v_jul_comm_amt := v_jul_comm_amt




[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 2008 with SQL and Windows XP [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top