I am not sure if this best belongs in the Report or Query forum. I have been asked to create a report which details line by line (each line a contract number) the products sold in a given timeframe against that contract.
Most of the report has been easy to set up, but I do not know how to do the key part of it.
I have a table, which holds all installed product details. The fields are [ID], [Product], [Quantity] and [Contract].
[Contract] is linked by relationship (many-to-one) to the [Contract] field in the main table.
[ID] is an autonumber and this table's PK.
[Product] is linked by relationship to the Product table, which holds the full product listing.
[Quantity] is a field to record the quantities of products sold on each job.
The report has 10 product columns to show the different products sold against each contract. What I cannot do is to sort in the report (or query) so that I can show the correct number of products sold against the correct contract.
The column headings are in the Page Header section of the report and the actual data in the Details section.
I would appreciate any guidance for this problem.
Most of the report has been easy to set up, but I do not know how to do the key part of it.
I have a table, which holds all installed product details. The fields are [ID], [Product], [Quantity] and [Contract].
[Contract] is linked by relationship (many-to-one) to the [Contract] field in the main table.
[ID] is an autonumber and this table's PK.
[Product] is linked by relationship to the Product table, which holds the full product listing.
[Quantity] is a field to record the quantities of products sold on each job.
The report has 10 product columns to show the different products sold against each contract. What I cannot do is to sort in the report (or query) so that I can show the correct number of products sold against the correct contract.
The column headings are in the Page Header section of the report and the actual data in the Details section.
I would appreciate any guidance for this problem.