If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Problem with sorting in Crosstab Qry

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-12-03, 13:01
ramonas ramonas is offline
Member
 
Join Date: May 2003
Posts: 26
Problem with sorting in Crosstab Qry

I have a crosstab query that is using a date field for the column heading. I need the columns to sort in ascending order, however, this isn't working properly.

For example, the column 01/01/2004 is before the column 04/30/2003

Any ideas?
Reply With Quote
  #2 (permalink)  
Old 09-16-03, 08:05
mashinovodja mashinovodja is offline
Registered User
 
Join Date: Aug 2003
Location: Belgrade
Posts: 68
Re: Problem with sorting in Crosstab Qry

What is the date format/date separator on your machine? One solution is to use the Format function to display dates as strings in the yyyy/mm/dd format:

Format([MyDate], "yyyy/mm/dd")

Make sure you use 4-digit years in case you have date prior to 2000.
Reply With Quote
Reply

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 On
Pingbacks are On
Refbacks are On