Advertisement

04.29.2008 at 01:23PM PDT, ID: 23363515
[x]
Attachment Details

I get an "Aggregate Function" Error When Grouping in a Summing Query

Asked by Rex85 in SQL Query Syntax, Microsoft Access Database

Tags: , ,

I have a query that queries another query (which renames a Field called Date to ProductionDate)

The following Query Works

SELECT PostFallsRenamingqry.ProductionDate, PostFallsRenamingqry.Type
FROM PostFallsRenamingqry;

But, when i add a Group By Line
SELECT PostFallsRenamingqry.ProductionDate, PostFallsRenamingqry.Type
FROM PostFallsRenamingqry
GROUP BY PostFallsRenamingqry.Type;

I get an Error Message that I am Using Production Date as part of an expression that is not part of an Aggregate Function (See Attached Message Screen Shot)

Can anyone explain what is happening here?
Start Free Trial
[+][-]04.29.2008 at 01:26PM PDT, ID: 21465901

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Query Syntax, Microsoft Access Database
Tags: Microsoft, Access, 2003
Sign Up Now!
Solution Provided By: jimhorn
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.29.2008 at 01:43PM PDT, ID: 21466029

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.29.2008 at 01:46PM PDT, ID: 21466053

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.29.2008 at 02:31PM PDT, ID: 21466390

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.29.2008 at 08:50PM PDT, ID: 21467961

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04.30.2008 at 11:38AM PDT, ID: 21473416

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.30.2008 at 01:09PM PDT, ID: 21474155

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.30.2008 at 01:11PM PDT, ID: 21474168

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628