A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

aggregate function error message??



 
 
Thread Tools Display Modes
  #1  
Old August 21st, 2008, 01:49 PM posted to microsoft.public.access.tablesdbdesign
zakbelle
external usenet poster
 
Posts: 2
Default aggregate function error message??

Each time I try to open one of my queries I get an error message which tells
me that 'You tried to execute a query that does not include the specified
expression '[name]' as part of an aggregate function'. I have never come
across this before in Access can anyboby explain what it means??

thanks

Craig


  #2  
Old August 21st, 2008, 01:58 PM posted to microsoft.public.access.tablesdbdesign
Stefan Hoffmann
external usenet poster
 
Posts: 709
Default aggregate function error message??

hi,

zakbelle wrote:
Each time I try to open one of my queries I get an error message which tells
me that 'You tried to execute a query that does not include the specified
expression '[name]' as part of an aggregate function'. I have never come
across this before in Access can anyboby explain what it means??

This means, that in your SQL statement you have a line like

GROUP BY field1, ..., fieldN

each of this fields must be part of your selection, either as plain
field or as an aggregate, e.g.

SELECT field1, ..., Avg(fieldN)


mfG
-- stefan --
  #3  
Old August 21st, 2008, 02:09 PM posted to microsoft.public.access.tablesdbdesign
zakbelle
external usenet poster
 
Posts: 2
Default aggregate function error message??

Thanks for the reply Stefan, can I remove this line? I'm not sure of its
significance and I may have entered something by mistake but its seriously
disrupting my database

regards

Craig

"Stefan Hoffmann" wrote:

hi,

zakbelle wrote:
Each time I try to open one of my queries I get an error message which tells
me that 'You tried to execute a query that does not include the specified
expression '[name]' as part of an aggregate function'. I have never come
across this before in Access can anyboby explain what it means??

This means, that in your SQL statement you have a line like

GROUP BY field1, ..., fieldN

each of this fields must be part of your selection, either as plain
field or as an aggregate, e.g.

SELECT field1, ..., Avg(fieldN)


mfG
-- stefan --

  #4  
Old August 21st, 2008, 02:33 PM posted to microsoft.public.access.tablesdbdesign
Stefan Hoffmann
external usenet poster
 
Posts: 709
Default aggregate function error message??

hi,

zakbelle wrote:
Thanks for the reply Stefan, can I remove this line? I'm not sure of its
significance and I may have entered something by mistake but its seriously
disrupting my database

Nope, if you remove it, you will no longer get a grouped result (this
what the greek-S button does).


mfG
-- stefan --
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:09 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.