How to sort by date correctly?

  • Thread starter Thread starter Kevin3NF
  • Start date Start date
When I sort by date in ascending order, it goes by the first digit, not by
the year so it doesn't sort them correctly.
For example, record 02/11/1998 is above record 11/04/1978
How do I fix this? Thanks.
 
Hey, everybody! I see there's a "no license" question still available
further down... Race you!! <g>

Fred Boer

P.S. Kevin: I laughed loudly when I saw your munged email address. My
children heard me. They looked over my shoulder....Now I have to explain
it.... thanks a lot!! :(
 
I could change it to:

khill@NoIDontNeedViagraOrAMortgageRefinanceOrHotYoungGirlsFromAsiaYouWackoSp
ammer3nf-inc.com

but that takes forever to type...

--
Kevin Hill
President
3NF Consulting

www.3nf-inc.com
 
Lynn is a friend of mine....he knows I'm just playing with him....(I
think/hope)

Oh, I know. Sorry I didn't put a smiley on that since I was just
playing along with both of you!
 
It's "text" type. Thanks

So it's sorting correctly. The text string "11/04/1893" is
alphanumerically larger than the text string "03/21/2003". Access has
no way of knowing that you intend this Text field to be interpreted as
a date!

Put in a calculated field in your query, CDate([fieldname]), and sort
on it.
 
Back
Top