G
Guest
Hi
I have this code:
hellig = DCount("Helligdag", "Helligdage", "Helligdag = #" & start & "#")
There shall count days from a table if date (Start) is in the table
My problem is this
I have a date in Helligdag = 06-05-2007
And if i say that start is 06-05-2007 then i got 0 records
but if i say that start 05-06-2007 then i get 1 records
I have try to run e Query on this:
SELECT Helligdage.Helligdag
FROM Helligdage
WHERE (((Helligdage.Helligdag)=#6/5/2007#));
Then i get one records this is all right but i can see that the SQL query
turn the date to 6/5/2007, and i write 05-06-2007 in the Qury field in design.
I know its because i have a dansih DB and danish Date system
But what to do?
Alvin
I have this code:
hellig = DCount("Helligdag", "Helligdage", "Helligdag = #" & start & "#")
There shall count days from a table if date (Start) is in the table
My problem is this
I have a date in Helligdag = 06-05-2007
And if i say that start is 06-05-2007 then i got 0 records
but if i say that start 05-06-2007 then i get 1 records
I have try to run e Query on this:
SELECT Helligdage.Helligdag
FROM Helligdage
WHERE (((Helligdage.Helligdag)=#6/5/2007#));
Then i get one records this is all right but i can see that the SQL query
turn the date to 6/5/2007, and i write 05-06-2007 in the Qury field in design.
I know its because i have a dansih DB and danish Date system
But what to do?
Alvin