G
Guest
I have two tables that have a field called [Product number](text, width 255).
Both tables contain entries in [Product number] that does not exist in the
other table. I want to be able to list exactly which product numbers these
are. So I use the queries:
SELECT [Product number]
FROM Software
WHERE not([product number] IN (Select [product number] FROM imported));
and vice versa. It doesn't work; the result is empty. The one listed above
did work the first time I tried it, and then magically stopped working
without me changing anything in it or any of the tables referenced by it. The
query where the tables switch roles never worked.
If I try to list the intersection of the sets of product numbers instead,
using the query
SELECT [Product number]
FROM Software
WHERE [product number] IN (Select [product number] FROM imported);
I *do* get the correct results. Is there anything wrong with my query
including "Not"?
Btw, I'm using Access 2000 (sp3) on Windows 2000 Professional. Jet version
is 4.0.
Thanks,
Daniel
Both tables contain entries in [Product number] that does not exist in the
other table. I want to be able to list exactly which product numbers these
are. So I use the queries:
SELECT [Product number]
FROM Software
WHERE not([product number] IN (Select [product number] FROM imported));
and vice versa. It doesn't work; the result is empty. The one listed above
did work the first time I tried it, and then magically stopped working
without me changing anything in it or any of the tables referenced by it. The
query where the tables switch roles never worked.
If I try to list the intersection of the sets of product numbers instead,
using the query
SELECT [Product number]
FROM Software
WHERE [product number] IN (Select [product number] FROM imported);
I *do* get the correct results. Is there anything wrong with my query
including "Not"?
Btw, I'm using Access 2000 (sp3) on Windows 2000 Professional. Jet version
is 4.0.
Thanks,
Daniel