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

Shared Variables Zeroing Out 1

Status
Not open for further replies.

kbfnet

Programmer
Nov 16, 2004
28
US
Hi,

I am using the following formula in my subreport:

WhilePrintingRecords;
Shared numberVar SumHours := Sum ({@Unavailable Hours})

And I am using the following formula in my main report:

WhilePrintingRecords;
Shared NumberVar SumHours;
SumHours

It is returning a zero value in every summary when it should be returning values such as 88.98, 102.35, etc..

Any thoughts on why I am getting a zero value?

Thank you,
kbfnet
 
In the main report, the formula must be placed in a section below the one in which the subreport is located. Also, make sure you have placed the shared variable formula in the subreport somewhere on the subreport canvas.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top