Joining 2 Tables

D

Dar

I have 2 tables in Access 2000. One holds a list of all
Catalog numbers and the other links those catalog numbers
with their associated Asset numbers.

I want to run a query to find out which catalog numbers
DON'T have any Assets associated with them. Below is my
code:

SELECT tblCatalogMaster.CatalogNum

FROM tblCatalogMaster

WHERE tblCatalogMaster.CatalogNum NOT IN (SELECT
tblAssetCatLink.CatalogNum FROM tblAssetCatLink);


The query keeps freezing up on me. Please help!!!!!


Thanks,

Dar
 
B

Brian Camire

You might try a query whose SQL looks something like this:

SELECT tblCatalogMaster.CatalogNum
FROM tblCatalogMaster
LEFT JOIN tblAssetCatLink
ON tblCatalogMaster.CatalogNum = tblAssetCatLink.CatalogNum
WHERE tblAssetCatLink.CatalogNum IS NULL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top