I want to sort this query first by last 'date visited'; then by 'times visited'
the problem seems to be the way the date is sorted
in descendnig order, I get:
6/8/2015
6/5/2015
6/4/2015
6/12/2015
it seems to be sorting the date as text, NOT as a date
so I poked around, and change the query to adress date sorting (I thought)...
I suspect, as my grandmother would say: "right church, wrong pew..."
here's the SQL
SELECT
[tblChangeProjectList].[ProjectName],
[tblChangeProjectList].[FilePath],
[tblChangeProjectList].[FilePath],
[tblChangeProjectList].[TimesVisited],
TO_CHAR( [tblChangeProjectList].[LastTimeVisited],'YYYYMMDD') LastTimeVisited
FROM tblChangeProjectList ORDER BY [ProjectName]
UNION Select "< Pick from List...>", "<PICK...>", "", "", ""
FROM [tblChangeProjectList]
ORDER BY LastTimeVisited DESC , [tblChangeProjectList].[TimesVisited];
many thanks in advance,
Mark