Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 30th, 2003, 11:20 PM
Authorized User
Join Date: Jun 2003
Location: Sydney, NSW, Australia.
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default Crosstab query

In my crosstab query, field Period acts as a column heading. Data in the field is based on Medium Date Format - dd-mmm-yy . I have formated the query field to display results in "mmm yyyy" format. However, the columns are displayed in alphabetical order eg. Aug 2003, Jul 2003, Jun 2003, Sep 2003. If i change the format to "mm yyyy", the results are in correct order - 06 2003, 07 2003, 08 2003, 09 2003. What am i doing wrong here ?

Sydney, Australia
Reply With Quote
  #2 (permalink)  
Old December 1st, 2003, 04:02 PM
Registered User
Join Date: Dec 2003
Location: Charlotte, NC, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

You're not doing anything wrong. The Crosstab query sorts according to string labels. In the first instance, the names of the month were used and in the second, the numbers were used. You could create a crosstab with two row headings. The first row heading is your month number and the second row heading is the name of the month. This will force the the CrossTab to sort on the numeric values but also display the month information.

- Mark M -
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
crosstab query and parameter stoneman Access 10 January 6th, 2006 04:45 PM
crosstab query and asp tulincim Classic ASP Databases 0 September 13th, 2005 03:00 PM
Crosstab query with no results edubbelaar Access 0 November 22nd, 2004 06:12 AM
Crosstab Query Ben Access 7 November 22nd, 2004 06:08 AM
Crosstab query Berni016x SQL Server 2000 2 September 17th, 2004 10:43 AM

All times are GMT -4. The time now is 03:29 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.