J
Jean-Paul
I wrote some code to get data between 2 dates:
sql = "SELECT Sum(Uren.minuten) AS SomVanUur FROM Uren WHERE
Uren.Datum > #" & Format(Forms![Uur_overzicht]!Start_dat, "DD/MM/YYYY")
& "# And Uren.Datum < #" & Format(Forms![Uur_overzicht]!Stop_dat,
"DD/MM/YYYY") & "# ;"
The result is something like:
SELECT Sum(Uren.minuten) AS SomVanUur FROM Uren WHERE Uren.Datum >
#01/05/2008# And Uren.Datum < #30/05/2008# ;
When I put this in a query and got to the design
mode there is some tranformation of the first date into 05/01/2008
while the second date remains 30/05/2008
What am I doing wrong here.
Thanks
sql = "SELECT Sum(Uren.minuten) AS SomVanUur FROM Uren WHERE
Uren.Datum > #" & Format(Forms![Uur_overzicht]!Start_dat, "DD/MM/YYYY")
& "# And Uren.Datum < #" & Format(Forms![Uur_overzicht]!Stop_dat,
"DD/MM/YYYY") & "# ;"
The result is something like:
SELECT Sum(Uren.minuten) AS SomVanUur FROM Uren WHERE Uren.Datum >
#01/05/2008# And Uren.Datum < #30/05/2008# ;
When I put this in a query and got to the design
mode there is some tranformation of the first date into 05/01/2008
while the second date remains 30/05/2008
What am I doing wrong here.
Thanks