View Full Version : Sort Dates


BrainDead
08-29-2001, 12:46 PM
In a query, how can I sort a date field, so that the records that come back are in order

15 June
21 August
6 September

E.t.c.

Thanks

Jack Cowley
08-29-2001, 03:24 PM
Add another column and put this in the Field - ByMonth: Month([YourDateField]). Then uncheck the Show check box and set Sort to Ascending.

R. Hicks
08-29-2001, 04:42 PM
Hmmm......

Jack what about the Year that you have not accounted for .....

RDH

Jack Cowley
08-29-2001, 08:51 PM
I took him at his word and left off the year part. And I wanted to see if you were alert!

BrainDead
08-30-2001, 05:01 AM
Thanks Jack...

From the code you have for the month, I am assuming that the code for the year will be:

ByYear: Year([Datefield])

Thnx