S
Stonewall
I have a select query in ACCESS 2003. It contains a DATE field that is
necessary but I do not want to GROUP by it. It causes problems in the
resulting report when it groups by the date. If I take GROUP BY off the DATE
field and just leave it blank I get an error (something about not including
the expression DATEe as part of an aggregate function) . If I get rid of
the TOTALS view it fixes the date problem but then the SUM OF fields I am
using in the report no longer exist. How can I fix this problem so I can
have the total row in the query and NOT be forced to GROUP BY the date field?
SELECT Performances.studentid, Performances.serviceid,
Sum(Performances.manikin) AS MnqSum, Sum(Performances.live) AS LiveSum,
Sum(Performances.Hours) AS SumOfHours, Performances.date,
Sum(Performances.grade) AS SumOfgrade
FROM Performances
GROUP BY Performances.studentid, Performances.serviceid, Performances.date;
necessary but I do not want to GROUP by it. It causes problems in the
resulting report when it groups by the date. If I take GROUP BY off the DATE
field and just leave it blank I get an error (something about not including
the expression DATEe as part of an aggregate function) . If I get rid of
the TOTALS view it fixes the date problem but then the SUM OF fields I am
using in the report no longer exist. How can I fix this problem so I can
have the total row in the query and NOT be forced to GROUP BY the date field?
SELECT Performances.studentid, Performances.serviceid,
Sum(Performances.manikin) AS MnqSum, Sum(Performances.live) AS LiveSum,
Sum(Performances.Hours) AS SumOfHours, Performances.date,
Sum(Performances.grade) AS SumOfgrade
FROM Performances
GROUP BY Performances.studentid, Performances.serviceid, Performances.date;