I don't see a standard deviation aggregate function here http://www.techonthenet.com/access/functions/. Too bad, that would have made it simple.
However, I do see a DStDev function here http://msdn.microsoft.com/en-us/libr...ffice.11).aspx
That's about the same thing, with a slightly different syntax. Here's a very rough aircode example -
Code:
SELECT
MyQuery.MyType,
MyQuery.MySubType,
Avg(MyQuery.UnitPrice) As MyAvgPrice,
DStDev("[UnitPrice]", "[MyQuery]","[MyType] = " & MyQuery.MyType & " AND [MySubType] = " & MyQuery.MySubType) As MyStDev
FROM MyQuery
GROUP BY
MyQuery.MyType,
MyQuery.MySubType;