Date formats used by Access SQL
Regardless of the regional settings of your PC, you must provide
dates in US format for SQL statements in VBA. Use the following
simple function to convert a UK date into a US-format date:
Function
SQLDate
(ByVal
MyDate
As Variant) As String
SQLDate = "#" & Format(MyDate,"mm/dd/yyyy") & "#"
End Function
Further information in the Microsoft Knowledge Base: Q149095 ACC
|