I have run into a very strange problem. Running MS Access 2003, SP3.
I am running a simple query with 2 tables, using an outer join, looking for a list of all records in table 1 where there is no corresponding entry in table 2:
SELECT Table1.key,
Table1.lastname,
Table1.firstname
FROM Table1 LEFT JOIN Table2
ON Table1.key = Table2.Table1key
WHERE (((Table2.key) Is Null));
When I run this query against imported copies of the tables, it works great. The problem is, when I run the exact same query against these tables linked instead of imported, the query does not work. It returns far too much data.
In particular, I recently added rows to Table2 so now there should always be at least one row in table2 linked to table1. The query correctly returns no data when run against the imported tables. It incorrectly returns 35,000+ rows when run against the linked tables.
Any thoughts would be welcome. I have searched through the microsoft helpdesk and online, but cannot find this particular issue as a known bug. I did find one issue with linked outer joins, stating there could be an issue in the Jet driver, but my files are all up-to-date, so I do not believe that is the problem.
Thanks
I am running a simple query with 2 tables, using an outer join, looking for a list of all records in table 1 where there is no corresponding entry in table 2:
SELECT Table1.key,
Table1.lastname,
Table1.firstname
FROM Table1 LEFT JOIN Table2
ON Table1.key = Table2.Table1key
WHERE (((Table2.key) Is Null));
When I run this query against imported copies of the tables, it works great. The problem is, when I run the exact same query against these tables linked instead of imported, the query does not work. It returns far too much data.
In particular, I recently added rows to Table2 so now there should always be at least one row in table2 linked to table1. The query correctly returns no data when run against the imported tables. It incorrectly returns 35,000+ rows when run against the linked tables.
Any thoughts would be welcome. I have searched through the microsoft helpdesk and online, but cannot find this particular issue as a known bug. I did find one issue with linked outer joins, stating there could be an issue in the Jet driver, but my files are all up-to-date, so I do not believe that is the problem.
Thanks