I am getting a circular reference caused by 'qrySectorAX'. From the following code:
SELECT qryIntervalSectorAX.SectorID, qryIntervalSectorAX.UnitID, Count(qryIntervalSectorAX.[Length]) AS NoOfWeights, (Sum([Length]*([AX]-[WeightedAX])^2)/(([NoOfWeights]-1)/[NoOfWeights]*Sum([Length])))^0.5 AS WeightedSD
FROM qryIntervalSectorAX INNER JOIN qrySectorAX ON qryIntervalSectorAX.UnitID = qrySectorAX.UnitID AND qryIntervalSectorAX.SectorID = qrySectorAX.SectorID
GROUP BY qryIntervalSectorAX.SectorID, qryIntervalSectorAX.UnitID;
Can anyone help?