I'm going nuts here.
I have a sqlstring in code that acts as a search function.
I can search for all and everything, but there is something wrong with my date-search, and I can't get it right.
This is what I have:
I have the following dates in 'Bestelbonnen'. 23/10/2004, 28/10/2004, 4/11/2004
When I run the code above, It results in giving me everything!
When I change the date to "10/11/2004" it still gives me everything!
But when I change it to "11/11/2004" it showsme nothing!
The stupid thing always thinks its working with mm/dd/yyyy iso dd/mm/yyyy
Though the latter appeares to be set in the regional settings ??????
PLease help
Nirious
I have a sqlstring in code that acts as a search function.
I can search for all and everything, but there is something wrong with my date-search, and I can't get it right.
This is what I have:
Code:
SELECT bestelbonnr, klantnr, datum, 'Leveringsbon' AS EXPR1 FROM Bestelbonnen WHERE (((Bestelbonnen.datum)>=# & Format("4/11/2004", "dd\/mm\/yyyy") & "#))"
I have the following dates in 'Bestelbonnen'. 23/10/2004, 28/10/2004, 4/11/2004
When I run the code above, It results in giving me everything!
When I change the date to "10/11/2004" it still gives me everything!
But when I change it to "11/11/2004" it showsme nothing!
The stupid thing always thinks its working with mm/dd/yyyy iso dd/mm/yyyy
Though the latter appeares to be set in the regional settings ??????
PLease help
Nirious