Stuart McLachlan
stuart at lexacorp.com.pg
Wed Jun 16 17:15:34 CDT 2010
Yep, embedding dates as criteria in SQL strings can cause problems with
internationalisation. The query engine uses mm/dd/yy.
There are a number of ways to the get around the problem of different regional settings., but I
generally use DataValue() along these lines:
strSQL = "Select * from tblDemoWhere StartDate = Datevalue('" & txtStart & "');"
--
Stuart
On 16 Jun 2010 at 14:48, Doug Steele wrote:
> A vague memory comes to me that I read somewhere that the SQL processing
> engine in Access always assumes that dates are in mm/dd/yy format, and has
> caused me trouble. Was that possibly involved?
>
> Doug
>