access crosstab queries month range

T

tonyrulesyall

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.
 
K

KARL DEWEY

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");
 
D

Duane Hookom

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 said:
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


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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top