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  

Help on Consolidating data



 
 
Thread Tools Display Modes
  #1  
Old November 21st, 2006, 02:06 AM posted to microsoft.public.access.queries
The Dummy in Access for Dummies
external usenet poster
 
Posts: 19
Default Help on Consolidating data

Is there a way to consolidate data for one particular item (record), without
converting into a Pivot Table? Example: If I have 60 units for the year 2005
and 50 units for the year 2006 and I wanted to have them combined into the
same product number (1111), the moment I run the query? The catch is that I
need the rest of the columns that are creating the duplicatation, so I keep
getting:

1111..2005...60 units
1111..2006...50 units

and I want

1111...110 units and if I leave out the year column, I'll get all of the
previous years included...2004, 2003,etc. and I don't
  #2  
Old November 21st, 2006, 02:36 AM posted to microsoft.public.access.queries
John Vinson
external usenet poster
 
Posts: 4,033
Default Help on Consolidating data

On Mon, 20 Nov 2006 18:06:01 -0800, The Dummy in Access for Dummies
. com wrote:

Is there a way to consolidate data for one particular item (record), without
converting into a Pivot Table? Example: If I have 60 units for the year 2005
and 50 units for the year 2006 and I wanted to have them combined into the
same product number (1111), the moment I run the query? The catch is that I
need the rest of the columns that are creating the duplicatation, so I keep
getting:

1111..2005...60 units
1111..2006...50 units

and I want

1111...110 units and if I leave out the year column, I'll get all of the
previous years included...2004, 2003,etc. and I don't


Use a Totals query, and change the aggregate function on the year
column to "Where" instead of "Group By"... or, if you want all years,
leave it out altogether.

John W. Vinson[MVP]
 




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 10:23 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.