Since you didn't include the entire SQL statement, I'm going to assume you have something like:
SELECT Field1, Field2, Sum(([OpDurMin])/Count([ID])) As Test
FROM SomeTable
Anytime you use an aggregate function (like SUM, COUNT, AVG) you have to include a GROUP BY clause and all the non-aggregate fields have to be included. This would work with the example above:
SELECT Field1, Field2, Sum(([OpDurMin])/Count([ID])) As Test
FROM SomeTable GROUP BY Field1, Field2
In the future, I would suggest that to get specific help you include the actual error message, and all the information necessary to assist you (like the whole SQL statement)
Leslie
Anything worth doing is a lot more difficult than it's worth - Unknown Induhvidual
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.