Wrox Programmer Forums
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 30th, 2003, 11:20 PM
Authorized User
Join Date: Jun 2003
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
Old December 1st, 2003, 04:02 PM
Registered User
Join Date: Dec 2003
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 -

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

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