How do I sort dates like Mar-05 in descending order?

  • Thread starter Thread starter Mark Allsop
  • Start date Start date
M

Mark Allsop

I have a "LastUpdated" field in my Client database. Over
time the field is filled with dates; eg. Jun-03, Nov-03,
Feb-04, Sept-04, Feb-05, Mar-05 and so on. I want to sort
them in a query or SQL in decending chronological order.
ie. From now going back in time. How do I do this?

Thanks Mark Allsop (Devon, England)
 
I have a "LastUpdated" field in my Client database. Over
time the field is filled with dates; eg. Jun-03, Nov-03,
Feb-04, Sept-04, Feb-05, Mar-05 and so on. I want to sort
them in a query or SQL in decending chronological order.
ie. From now going back in time. How do I do this?

Thanks Mark Allsop (Devon, England)

Is this a Date/Time field or a Text field??? Date fields should have a
complete date (day month and year).

If this is a Date/Time field simply sort it descending.

If it's Text, put in a calculated field

CDate("01-" & [LastUpdated])

to put a day onto the field, and sort descending by this field.

John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top