I could use some advice on how best to structure a query. I have the following fields:
Contract, Activity Date, Product1, Quantity1, Product2, Quantity2, Product3, Quantity3, Product4, Quantity4, Product5, Quantity5
At the data entry stage Products1-5 are entered from a combo box, which takes its data from a Products table. In otehr words, the drop down menus for all 5 fields are identical.
The quantity fields refer to the number of products used in the corresponding Product field.
My query needs to deal with month end sums. What I want to do is create the sum of Quantity fields 1-5 which equals product code "P*" in the 5 Products fields. The same formula needs to be created for the other 8 product groups so that it can be out put into a report.
I cannot find a way of making this work for me. Does anyone have any thoughts?
Contract, Activity Date, Product1, Quantity1, Product2, Quantity2, Product3, Quantity3, Product4, Quantity4, Product5, Quantity5
At the data entry stage Products1-5 are entered from a combo box, which takes its data from a Products table. In otehr words, the drop down menus for all 5 fields are identical.
The quantity fields refer to the number of products used in the corresponding Product field.
My query needs to deal with month end sums. What I want to do is create the sum of Quantity fields 1-5 which equals product code "P*" in the 5 Products fields. The same formula needs to be created for the other 8 product groups so that it can be out put into a report.
I cannot find a way of making this work for me. Does anyone have any thoughts?