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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Does not include the specified expression as part of an aggregatefunction



 
 
Thread Tools Display Modes
  #1  
Old December 22nd, 2009, 02:50 PM posted to microsoft.public.access.queries
Beejer
external usenet poster
 
Posts: 2
Default Does not include the specified expression as part of an aggregatefunction

Running Access 2003 on Windows XP

I'm starting a new structure parallel to a current database. The table
are fully linked (no local tables) and I'm trying to create a simple
query and I keep getting this message.

The current query has one table to it, the general idea is to
calculate consumption of raw materials in production.

Fields:
- Product Code (Text) // These are alphanumeric codes.
- Inventory deductions // Numeric

I'm trying to sum, min and max the deductions. My formula : "Total :
Sum([Inventory deductions]) // Low : Min([Inventory deductions]) //
High : Max([Inventory deductions])

When I try to run the query, "Does not include the specified
expression as part of an aggregate function" pops up. I never had this
issue before.

Anybody can enlighten me on what is going on?
  #2  
Old December 22nd, 2009, 03:05 PM posted to microsoft.public.access.queries
Beejer
external usenet poster
 
Posts: 2
Default Does not include the specified expression as part of an aggregatefunction

On Dec 22, 9:50*am, Beejer wrote:
Running Access 2003 on Windows XP

I'm starting a new structure parallel to a current database. The table
are fully linked (no local tables) and I'm trying to create a simple
query and I keep getting this message.

The current query has one table to it, the general idea is to
calculate consumption of raw materials in production.

Fields:
- Product Code (Text) // These are alphanumeric codes.
- Inventory deductions // Numeric

I'm trying to sum, min and max the deductions. My formula : "Total :
Sum([Inventory deductions]) // Low : Min([Inventory deductions]) //
High : Max([Inventory deductions])

When I try to run the query, "Does not include the specified
expression as part of an aggregate function" pops up. I never had this
issue before.

Anybody can enlighten me on what is going on?


I was getting so desperate when I posted this, nothing was working...
so I got up and walk to coffee machine and back... found my mistake.

Solution was pretty simple that I couldn't even see it. I removed "
Inventory deductions" for the query to concentrate on "Product code".
Grouped "Product Code" only with the Group by feature and ran the
query with only the sum expression ** not grouped** and no message.

I will push this further... and sorry for not signing earlier.

Beejer







  #3  
Old December 22nd, 2009, 03:38 PM posted to microsoft.public.access.queries
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default Does not include the specified expression as part of an aggregate

Show us the SQL. Open the query in design view. Next go to View, SQL View
and copy and past it here.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Beejer" wrote:

Running Access 2003 on Windows XP

I'm starting a new structure parallel to a current database. The table
are fully linked (no local tables) and I'm trying to create a simple
query and I keep getting this message.

The current query has one table to it, the general idea is to
calculate consumption of raw materials in production.

Fields:
- Product Code (Text) // These are alphanumeric codes.
- Inventory deductions // Numeric

I'm trying to sum, min and max the deductions. My formula : "Total :
Sum([Inventory deductions]) // Low : Min([Inventory deductions]) //
High : Max([Inventory deductions])

When I try to run the query, "Does not include the specified
expression as part of an aggregate function" pops up. I never had this
issue before.

Anybody can enlighten me on what is going on?
.

 




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 08:45 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.