Select X where not in. . .

liddlem

Registered User.
Local time
Today, 07:58
Joined
May 16, 2003
Messages
339
Hi readers
I have 4 tables as follows.

TblBCode - Barcode, BCType
TblUsers - Users, UserGrp
TblHardware - SerialNo, HWType, and some other fields.
TblHWTypes - HWType,Description

I want to ceate a query that selects all records in TblBCode where BCType is not in TblHWTypes.HWType

I think it can be done in SQL, but can it be done in Access?
 
How would you do it in SQL?

In Access try ...
Code:
SELECT * FROM Table WHERE ThisField Not In 
( SELECT ThatField FROM OtherTable )
...but the JetSQL In operator is the key.
Mark
 
I knew there had to be a way - Thanks
 

Users who are viewing this thread

Back
Top Bottom