J
Jean-Paul
In my code I have following sql:
sql = "SELECT Afspraken.* FROM Afspraken WHERE Afspraken.Aankomst= 800
AND afspraken.datum_bezoek= #" &
Format(Forms![Bedrijven]!Knop29.Caption, "DD/MM/YYYY") & "#;"
this gives following result when I enter ? sql
SELECT Afspraken.* FROM Afspraken WHERE Afspraken.Aankomst= 800 AND
afspraken.datum_bezoek= #06/02/2009#;
This returns no record
When I put it in a query, nothing is returned either...
When I delete the date part, I get 5 records matching the "Aankomst=800"
criterium
When I manually add: 06/02/09 in the query-wizard
I get the correct record.
After enetring acces automaically adds the # before and after the date
When I then look at the query code it looks exactly the same as I had
before....
Who can explain waht happens
sql = "SELECT Afspraken.* FROM Afspraken WHERE Afspraken.Aankomst= 800
AND afspraken.datum_bezoek= #" &
Format(Forms![Bedrijven]!Knop29.Caption, "DD/MM/YYYY") & "#;"
this gives following result when I enter ? sql
SELECT Afspraken.* FROM Afspraken WHERE Afspraken.Aankomst= 800 AND
afspraken.datum_bezoek= #06/02/2009#;
This returns no record
When I put it in a query, nothing is returned either...
When I delete the date part, I get 5 records matching the "Aankomst=800"
criterium
When I manually add: 06/02/09 in the query-wizard
I get the correct record.
After enetring acces automaically adds the # before and after the date
When I then look at the query code it looks exactly the same as I had
before....
Who can explain waht happens