S
Sunny
I am writing query to find out client list who has not placed order between
certail dates, I tried following query on SQL server and in access, it re
turns me results on sql server but does not return anything in access. Can
some one explain me why is this strange behavior in access?
SQL Query
select * from Clients where clientid not in
(SELECT Clientid FROM purchase WHERE purdate >= '12/31/2004' AND purdate <=
'1/1/2005' )
Access query
select * from Clients where clientid not in
(SELECT Clientid FROM purchase WHERE purdate >= #12/31/2004# AND purdate <=
#1/1/2005# )
I do not have purchase records between those dates, I get all clients in SQL
query but nothing in Access.
certail dates, I tried following query on SQL server and in access, it re
turns me results on sql server but does not return anything in access. Can
some one explain me why is this strange behavior in access?
SQL Query
select * from Clients where clientid not in
(SELECT Clientid FROM purchase WHERE purdate >= '12/31/2004' AND purdate <=
'1/1/2005' )
Access query
select * from Clients where clientid not in
(SELECT Clientid FROM purchase WHERE purdate >= #12/31/2004# AND purdate <=
#1/1/2005# )
I do not have purchase records between those dates, I get all clients in SQL
query but nothing in Access.