Results 1 to 2 of 2
  1. #1
    Nicolayd is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    1

    Soring dates in a crosstab


    Hi

    I have created a crosstab in a query, and would like the dates which are held in columns to be alphabetically sorted. How is this possible please.

    Regards

    Nicola

  2. #2
    vicrauch is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Location
    Sacramento
    Posts
    27
    within the query create a "calculated" field. Use the date field as the parameter to the Format() function. So, if you wanted the date field sorted alphabetically by month, here would be the format:
    Code:
    Format(myDate, "mmm")
    For today's date of July 12, 2011, this function will return the string "Jul" which you could then use in a displayed, or non-displayed field, but set the field to be sorted. If you want the name of the day of the week, you can use "ddd" in the function rather than the "mmm"

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Receiving <> in crosstab
    By Brian62 in forum Queries
    Replies: 0
    Last Post: 03-21-2011, 05:02 PM
  2. display all dates between two dates
    By KenThompson in forum Access
    Replies: 8
    Last Post: 02-23-2011, 01:11 PM
  3. Mixed dates - show only complete dates?
    By weeblesue in forum Queries
    Replies: 3
    Last Post: 10-27-2010, 02:15 PM
  4. Crosstab example
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 08-24-2010, 12:07 AM
  5. Crosstab Query
    By lukewarmbeer in forum Access
    Replies: 2
    Last Post: 08-13-2010, 05:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums