J
Jorge Novoa
Hello everyone.
I have a little question:
I got some controls in a form, I'm trying to run a query with the values of
these control, of course. Both are date values,
I create a where string clause, which goes like this:
strWhereSql= "WHERE Retts.Date between #" & me.datStart & " AND " &
me.datEnd
Then I append the where string to the rest of the SQL string, in order to
run it later. No problem or doubt with that.
I'm using Access XP in Spanish, windows 98 in Spanish, the system settings
for date is: DD/MM/YYYY
The string created is like this:
WHERE Retts.Date between #11/05/2004# AND #11/05/2004#
You see? It has to be May 11, 2004 for me
BUT Access returns me the data for November 5, 2004 !!!!!!!
It turns the days to month, and the mont to days
WHY???
Another thing: if I try with 20/05/2004, that is May 20, 2004 for me, for
example, it returns the data for May 20, 2004.!!!!¿?¿?¿?!!!! ¿?¿¿?!!!!
WHY???
Why does Access 'convert' the date as it please???
All my formats, all my settings are dd/mm/yyyy, but access keep using the
mm/dd/yyyy format when running a query.
I've also tried: format(datStart, "dd/mmm/yyyy"), but it' doesn't work
I'm amazed how access change these values, I know it has something to be
with the language, I Only need to know why is this situation caused, and how
to correct it.
PLEASE HEEEELP
Thanx!
I have a little question:
I got some controls in a form, I'm trying to run a query with the values of
these control, of course. Both are date values,
I create a where string clause, which goes like this:
strWhereSql= "WHERE Retts.Date between #" & me.datStart & " AND " &
me.datEnd
Then I append the where string to the rest of the SQL string, in order to
run it later. No problem or doubt with that.
I'm using Access XP in Spanish, windows 98 in Spanish, the system settings
for date is: DD/MM/YYYY
The string created is like this:
WHERE Retts.Date between #11/05/2004# AND #11/05/2004#
You see? It has to be May 11, 2004 for me
BUT Access returns me the data for November 5, 2004 !!!!!!!
It turns the days to month, and the mont to days
WHY???
Another thing: if I try with 20/05/2004, that is May 20, 2004 for me, for
example, it returns the data for May 20, 2004.!!!!¿?¿?¿?!!!! ¿?¿¿?!!!!
WHY???
Why does Access 'convert' the date as it please???
All my formats, all my settings are dd/mm/yyyy, but access keep using the
mm/dd/yyyy format when running a query.
I've also tried: format(datStart, "dd/mmm/yyyy"), but it' doesn't work
I'm amazed how access change these values, I know it has something to be
with the language, I Only need to know why is this situation caused, and how
to correct it.
PLEASE HEEEELP
Thanx!