Senin, 09 Juli 2018

[MS_AccessPros] query sort by date not working

 

I am trying to sort my query results by date, the field is defined as a short date in the table, however the sort does not work.:6/30/2017 sorts before 3/1/2017.


If I add  Format([mydate],"yyyymmdd") AS sortdte and then run another query sorting by sortdte, it sorts correctly.


I would like to just run one query that sorts correctly, i have tried 'Order by mydate' and 'Order BY  Format([enrollmentdate],"yyyymmdd"), neither version works.


Is there a way to 'fix' this?.


Thanks for all help


Sarah

 

__._,_.___

Posted by: sarahk@schemesoftware.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


SPONSORED LINKS
.

__,_._,___

Tidak ada komentar:

Posting Komentar