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  

Crosstab Query



 
 
Thread Tools Display Modes
  #1  
Old July 3rd, 2008, 09:43 AM posted to microsoft.public.access.queries
acccessaccess2003
external usenet poster
 
Posts: 5
Default Crosstab Query

I have a crosstab query created and generates the following result set.
[ID] [2008 04] [2008 05]
1 5 4
2 4 2
3 3 0

Is there any way that I can crosstab to obtain the following table?

[Month] [Total]
[2008 04] [12]
[2008 05] [6]

Any help is very much appreciated.
  #2  
Old July 3rd, 2008, 11:08 AM posted to microsoft.public.access.queries
scubadiver
external usenet poster
 
Posts: 1,673
Default Crosstab Query


If I assume your data is properly normalised create a totals query using the
date as a grouping column? No need for a crosstab.

"acccessaccess2003" wrote:

I have a crosstab query created and generates the following result set.
[ID] [2008 04] [2008 05]
1 5 4
2 4 2
3 3 0

Is there any way that I can crosstab to obtain the following table?

[Month] [Total]
[2008 04] [12]
[2008 05] [6]

Any help is very much appreciated.

  #3  
Old July 3rd, 2008, 02:49 PM posted to microsoft.public.access.queries
Michel Walsh
external usenet poster
 
Posts: 2,404
Default Crosstab Query

Jet does not have CUBE (neither ROLLUP), and even if we can simulate them,
here, the easiest way seem to make two crosstabs, one with GROUP BY id, and
one with GROUP BY null (or group by on any constant) , and then, UNION ALL
the two crosstabs in third query.

Vanderghast, Access MVP



"acccessaccess2003" wrote in
message ...
I have a crosstab query created and generates the following result set.
[ID] [2008 04] [2008 05]
1 5 4
2 4 2
3 3 0

Is there any way that I can crosstab to obtain the following table?

[Month] [Total]
[2008 04] [12]
[2008 05] [6]

Any help is very much appreciated.



 




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 04:05 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.