S
stelios
Hi,
I have a query in a DAO recordset which have the parameter <<Between
[indate] and [outdate]>>. The dates have the British format "dd/mm/yyyy" (my
fields are saved in the tables at this format).
When I run the query by code I have wrong results! If I transfer the SQL
syntax, with copy-paste, in the access's "design view" I see that the date
changes in USA's format.
Is there a way to avoid it?
(This moment I use the function <<format(indate,"mm/dd/yyyy")>> and the
access recognize the date as British (it changes the "mm"->"dd" and vise
versa) so I get the right records .... I think!!!! ...... Is this way
right?)
Thanks
I have a query in a DAO recordset which have the parameter <<Between
[indate] and [outdate]>>. The dates have the British format "dd/mm/yyyy" (my
fields are saved in the tables at this format).
When I run the query by code I have wrong results! If I transfer the SQL
syntax, with copy-paste, in the access's "design view" I see that the date
changes in USA's format.
Is there a way to avoid it?
(This moment I use the function <<format(indate,"mm/dd/yyyy")>> and the
access recognize the date as British (it changes the "mm"->"dd" and vise
versa) so I get the right records .... I think!!!! ...... Is this way
right?)
Thanks