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.
 

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

Similar Threads

Success!! 2
Access 97 - 2000 Issue 4
MVPs.... 12
I should know this (version question) 2
How many users can connect to access? 12
Goofy requirement 8
ADP: 2000, XP or 2003 7
OK...I admit it...I need help 5

Back
Top