Hi all.
Got a strange one here for you. I'm trying to query an SQL server database from an Access 97 front end, via a linked table. The query uses a date field in the select query and I am trying to get all records where the date = 01/01/04. So I have the following query:
The strange thing is that it returns 214 rows of records that have the date 09/08/02. What is even weirder is that, in the table being queried, there are 214 records with the date 01/01/04, while there are 336 records with the date 09/08/02! So the query result is pulling the wrong records but is returning the correct number of rows! I have tried creating views in SQL server and linking to these instead and they work fine. It is just when I try to query the inked table that it all goes wrong.
What on earth could be causing this???
Regards.
Stephen.
Got a strange one here for you. I'm trying to query an SQL server database from an Access 97 front end, via a linked table. The query uses a date field in the select query and I am trying to get all records where the date = 01/01/04. So I have the following query:
Code:
SELECT dbo_BOOKED.URN, dbo_BOOKED.BKDATE
FROM dbo_BOOKED
WHERE (((dbo_BOOKED.BKDATE)=#1/1/2004#));
What on earth could be causing this???
Regards.
Stephen.