BradCustom
IS-IT--Management
Hi Everyone and thanks for your help in advance!
I'm using Crystal reports 2016 and I'm having a problem with passing a shared variable. Oh the subreport "Sub-PartActInv" I have the following formula which passes the Unit Price to the Main Report.
Here is the formula for the shared variable which is in the Report Footer of the Subreport.
In the Main report I have placed the Subreport in Group Footer 1B and the shared variable formula in Group Footer 1C. Below is the formula for the variable on the Main report.
The value that is reported by the shared variable is off by one row. So, the value for row 1 is shown on row 2.
Any help would be very much appreciated.
Thanks You
I'm using Crystal reports 2016 and I'm having a problem with passing a shared variable. Oh the subreport "Sub-PartActInv" I have the following formula which passes the Unit Price to the Main Report.
Here is the formula for the shared variable which is in the Report Footer of the Subreport.
Code:
whileprintingrecords;
shared currencyvar unitprice :=
if isnull ({Invoice_Detail.Unit_Price})
then 0
else
{Invoice_Detail.Unit_Price}
In the Main report I have placed the Subreport in Group Footer 1B and the shared variable formula in Group Footer 1C. Below is the formula for the variable on the Main report.
Code:
whileprintingrecords;
shared currencyvar unitprice;
unitprice
The value that is reported by the shared variable is off by one row. So, the value for row 1 is shown on row 2.
Any help would be very much appreciated.
Thanks You