every record since #date#

  • Thread starter Thread starter ChironeX
  • Start date Start date
C

ChironeX

Guest
i have this weird thing, my hair is getting grey...
when i run the query
SELECT *
FROM table1
WHERE (((table1.fielddate)<#7/6/2006#));

it returns every record that matches

table1.fielddate<#6/7/2006#
:eek:
in design mode you can see 6/7/2006 at the criteria
it puts the month in stead of the day and vice versa...
 
SQL only works with dates in US format. Access tries to accomodate UK format dates but often fails where you use dd-mm-yyyy. I usually use a medium date format like 07-Jun-2006 which seems to avoid the problem.
 
neileg said:
SQL only works with dates in US format. Access tries to accomodate UK format dates but often fails where you use dd-mm-yyyy. I usually use a medium date format like 07-Jun-2006 which seems to avoid the problem.
indeed, when i use the function format(date,"mm-dd-yyyy") to convert my date en then run the query, the problem is solved.
thanks!
 

Users who are viewing this thread

Back
Top Bottom