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

Using shared variable between a main report from an sql database and a sub report from an excel data

Status
Not open for further replies.

jizzycrystal

IS-IT--Management
Nov 10, 2007
65
0
0
IE
Sub report:
I created a formula called YTDFTE
Whileprintingrecords;
shared numbervar ytdxxx := {@YTDxxx}
I then dragged into my sub report

Then in main report
I created a formula called TOTYTDFTE
Whileprintingrecords;
shared numbervar ytdxxx;ytdxxx

I then dragged into main report.

RESULT: IT DIDN'T WORK I JUST GOT 0.00

Question: does the formulae {@YTDxxx} have to exist in both reports?????

Thanks
 
Be sure that the subreport appears in the main report before the formula that uses its data.
 
Thanks Charily
when you say "before" do mean in a section before.
The subreport is in the report footer section of the main report
 
The subreport needs to be in a section above the formula that uses the resuly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top