I have a monthly sales report, with a subreport, much like the Orders form in Northwind.
The report recordsource is a query, and the subreport’s recordsource is another query with OrderID linking the two recordsets in the report.
This gives me one line in the report across the page for each order, and if there is more than one product on an order those products and quantities are listed one above the other. Then the next sales order line comes across the page underneath.
I am happy with this presentation, it looks neat and tidy whilst being easy to read.
My problem is that i want to have some summary data in the report fotter, eg. total number of items sold listed by item. Now that would be easy if the data were in the report, but the item data and quantitiy are in the subreport.
So, my question is how is the best way of doing this??
Can i reference the subreport controls and use the SUM function?? If so, i can’t find any data or examples on syntax for referencing subreport controls.
Should i run to make table queries?? Then i could SUM from the second data table. (Seems a long way round the problem).
I’ve tried the recordsource as one query, but where there is more than one product on any given order, the other fields repeat themselves relecting the data in the table.