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  

access crosstab queries month range



 
 
Thread Tools Display Modes
  #1  
Old June 6th, 2008, 11:41 PM posted to microsoft.public.access.queries
[email protected]
external usenet poster
 
Posts: 25
Default access crosstab queries month range

I am working on putting together crosstab pivot queries by month.

It always goes by calendar month order:
Jan, Feb, Mar, etc.

How do I set up the columns so they are in sequential order I want,
with the year, ex:

Dec 07, Jan 08, Feb 08, etc.

  #2  
Old June 7th, 2008, 12:10 AM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default access crosstab queries month range

You have two choices, neither get you exactly what you want.
PIVOT Format([YourDateField, "mmm yy") IN("Dec 07", "Jan 08", "Feb 08",
etc. );
AND update it every month.

OR
PIVOT Format([YourDateField, "yy mm mmm");

--
KARL DEWEY
Build a little - Test a little


" wrote:

I am working on putting together crosstab pivot queries by month.

It always goes by calendar month order:
Jan, Feb, Mar, etc.

How do I set up the columns so they are in sequential order I want,
with the year, ex:

Dec 07, Jan 08, Feb 08, etc.


  #3  
Old June 7th, 2008, 02:52 AM posted to microsoft.public.access.queries
Duane Hookom
external usenet poster
 
Posts: 7,177
Default access crosstab queries month range

If your final destination is a report, consider the solution at
http://www.tek-tips.com/faqs.cfm?fid=5466.

--
Duane Hookom
Microsoft Access MVP


"KARL DEWEY" wrote:

You have two choices, neither get you exactly what you want.
PIVOT Format([YourDateField, "mmm yy") IN("Dec 07", "Jan 08", "Feb 08",
etc. );
AND update it every month.

OR
PIVOT Format([YourDateField, "yy mm mmm");

--
KARL DEWEY
Build a little - Test a little


" wrote:

I am working on putting together crosstab pivot queries by month.

It always goes by calendar month order:
Jan, Feb, Mar, etc.

How do I set up the columns so they are in sequential order I want,
with the year, ex:

Dec 07, Jan 08, Feb 08, etc.


 




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:30 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.