Bennie47250
Programmer
Using Crystal Reports version 7.0
In my main report I have a shared variable named “CurrentYearUnitGlobalVariable” and the formula is:
shared numbervar CurrentYearUnits;
CurrentYearUnits:=Sum ({@CurrentYearYTDUnitSales}, {Customer.CTYP1})
In my Subreport I’m attempting to use the variable and the subreport is acting as if it does not know the value of the shared variable.
The formula I’m attempting to use the variable is
Sum ({@CurrentYearQtyShipped}, {Product_Family.CrystalSortOrder}) % shared numbervar CurrentYearUnits
On the main report the variable is showing in GF1
The subreport is also in GF1
The formula on the subreport is also in GF1
I have another report with practically the same formulas and it is working so I’m confident this will work if I get all the pieces in the right places.
Thanks
Bennie
In my main report I have a shared variable named “CurrentYearUnitGlobalVariable” and the formula is:
shared numbervar CurrentYearUnits;
CurrentYearUnits:=Sum ({@CurrentYearYTDUnitSales}, {Customer.CTYP1})
In my Subreport I’m attempting to use the variable and the subreport is acting as if it does not know the value of the shared variable.
The formula I’m attempting to use the variable is
Sum ({@CurrentYearQtyShipped}, {Product_Family.CrystalSortOrder}) % shared numbervar CurrentYearUnits
On the main report the variable is showing in GF1
The subreport is also in GF1
The formula on the subreport is also in GF1
I have another report with practically the same formulas and it is working so I’m confident this will work if I get all the pieces in the right places.
Thanks
Bennie