Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Sep 2004
    Location
    Louisville, Kentucky, USA
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Sort Column Headings (Dates) in a Crosstab Query (Access 2000)

    I am exporting a crosstab query to excel to create a chart. The column headings of the query are formatted as "short date". However, the headings sort left to right as they would if formatted as text. eg. 9-10-04, 9-2-04 instead of 9-2-04, 9-10-04. How can I get the headings to sort properly?

  2. #2
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Sint Niklaas, Belgium
    Posts
    2,778
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Sort Column Headings (Dates) in a Crosstab Query (Access 2000)

    You should use double digits in your format function.
    Use Format([YourDate],"mm-dd-yyyy") istead of Format([YourDate],"m-d-yyyy")
    Francois

  3. #3
    Lounger
    Join Date
    Sep 2004
    Location
    Louisville, Kentucky, USA
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Sort Column Headings (Dates) in a Crosstab Query (Access 2000)

    Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •