I have a sub report that totals up the sales tons for a particular customer for a certain date range. The customer number and date range are passed from the main report.
In the sub-report, I have summed the tons in a shared variable and placed them in the Group Footer portion.
I want to show the contents of this shared variable in the Group Footer area for that customer on the main report.
I have defined a shared variable in my main report that just takes the value from the shared variable in my sub-report; I have put this in my Group Footer for that customer. It almost works! except that I am always off by one; the total tons for customer 1 appears on the line for customer 2, the total for customer 2 appears on customer 3 ,etc. Here is how I have defined my variables:
In my subreport: Shared numberVar Tons := Sum ({Company_Sales_History.Net Weight Shipped},{Company_Sales_History.Invoice to Customer Number}) / 2000;
In my main report: Shared numberVar Tons;
Does anyone know what I am doing wrong?
In the sub-report, I have summed the tons in a shared variable and placed them in the Group Footer portion.
I want to show the contents of this shared variable in the Group Footer area for that customer on the main report.
I have defined a shared variable in my main report that just takes the value from the shared variable in my sub-report; I have put this in my Group Footer for that customer. It almost works! except that I am always off by one; the total tons for customer 1 appears on the line for customer 2, the total for customer 2 appears on customer 3 ,etc. Here is how I have defined my variables:
In my subreport: Shared numberVar Tons := Sum ({Company_Sales_History.Net Weight Shipped},{Company_Sales_History.Invoice to Customer Number}) / 2000;
In my main report: Shared numberVar Tons;
Does anyone know what I am doing wrong?