T
Tokyo Alex
Dear all,
I've very often seen here and in other locations that if you want to pass a
date literal to Jet/ACE it must be in US format, i.e. #mm/dd/yyyy#.
However, I have a small tool I use (that I made before I read this) that
passes it as #yyyy/mm/dd# which works fine. This is my PCs location setting,
as well.
So I did a couple of tests, both writing SQL directly into the query builder
and passing SQL statements from VBA using OpenRecordset and variables, and it
seemed to work fine regardless of what date format I chose (US, UK, ISO).
The only time it choked was if I gave it a two-digit year.
I use Access 2007 SP2.
Does anyone know if this is a new thing that was designed into Access 2007?
Or am I just lucky? Or has my PC been taken over by friendly aliens who are
actually doing the hard work for me?
Cheers,
Alex.
I've very often seen here and in other locations that if you want to pass a
date literal to Jet/ACE it must be in US format, i.e. #mm/dd/yyyy#.
However, I have a small tool I use (that I made before I read this) that
passes it as #yyyy/mm/dd# which works fine. This is my PCs location setting,
as well.
So I did a couple of tests, both writing SQL directly into the query builder
and passing SQL statements from VBA using OpenRecordset and variables, and it
seemed to work fine regardless of what date format I chose (US, UK, ISO).
The only time it choked was if I gave it a two-digit year.
I use Access 2007 SP2.
Does anyone know if this is a new thing that was designed into Access 2007?
Or am I just lucky? Or has my PC been taken over by friendly aliens who are
actually doing the hard work for me?
Cheers,
Alex.