"Size" is a reserved word in Access and shouldn't be used for object names. Plus it is not very descriptive. "Size" of what?? Shoe, hat, shirt, ...
Really, really a bad ides to start an object name with a number. Access sometimes chokes when the first char is a number.
This query works for me:
Code:
SELECT [1-0-InQuery].MoYrID, [1-0-InQuery].MoYrNa, [1-0-InQuery].Code, [1-0-InQuery].Origin, [1-0-InQuery].[Drug Name], [1-0-InQuery].Substance, [1-0-InQuery].Cate, [1-0-InQuery].Company, [1-0-InQuery].Unit, [1-0-InQuery].[Size], [1-0-InQuery].Conc, Sum([1-0-InQuery].InQty) AS SumOfInQty, Sum([price]*[inqty]) AS Extended
FROM [1-0-InQuery]
GROUP BY [1-0-InQuery].MoYrID, [1-0-InQuery].MoYrNa, [1-0-InQuery].Code, [1-0-InQuery].Origin, [1-0-InQuery].[Drug Name], [1-0-InQuery].Substance, [1-0-InQuery].Cate, [1-0-InQuery].Company, [1-0-InQuery].Unit, [1-0-InQuery].[Size], [1-0-InQuery].Conc;
But you can't display the sum of "price".
Lets say you have two rows:
row 1 : qty = 10 and price = $5 -> extended price = 10 * $5 = $50
row 2 : qty = 5 and price = $15 -> extended price = 5 * $15 = $75
--------------------------------------------------------------------
Sum : qty = 15 and price = $20 -> extended price = $125
The problem is here: if you then try multiplying the sum of the qty (15) and the sum of the price ($20), the total is $300; which is wrong.
So I did not display the price in the query.
Does this help?