Connecting Tech Pros Worldwide Help | Site Map

Sort dates chronologically instead of alphabetically (using a query)?

Member
 
Join Date: Sep 2009
Location: Alabama
Posts: 98
#1: Oct 12 '09
I work for a testing lab. I enter into a table how many units I test, how many pass, and how many fail each week. I made a query which sums all of the units by the month (so in October 2009 there would be 4 weeks=4 entires to sum up). I want to display them chronologically. When I first run the query, they appear in chronological order. However, when I enter design mode, they change to alphabetical order and I can't get them coverted back. I'm a very beginner...so I need something simple. Any ideas?
best answer - posted by NeoPa
Have one field which displays the results you require. Have another field which is not displayed, but which you sort by. This should be the unformatted date.
Member
 
Join Date: Sep 2009
Location: Alabama
Posts: 98
#2: Oct 12 '09

re: Sort dates chronologically instead of alphabetically (using a query)?


DATE_ENTERED By Month: Format$([HOTSTICK_FAILURE].[DATE_ENTERED],'mmmm yyyy')

one solution I just came up with is to change my field to this:

DATE_ENTERED By Month: Format$([HOTSTICK_FAILURE].[DATE_ENTERED],'yyyy-mm')

This yields the results I desire...but it sure was nice to see the month written out. Now what?
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Posts: 15,672
#3: Oct 12 '09

re: Sort dates chronologically instead of alphabetically (using a query)?


Have one field which displays the results you require. Have another field which is not displayed, but which you sort by. This should be the unformatted date.
Reply