Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suppress Records From One Table of Two 1

Status
Not open for further replies.

gizmo1973

MIS
Aug 4, 2004
2,828
GB
I have two Tables A & B
Table A contains all records of table B and many more
I want to run a query (or whatever solution may suffice)to just give me table A purged of Table B
I would normally do this in MS Excel but the records are 65k +
Access is not my strong point so please be patient and give me step by step ideas if you have any!

Regards, Phil.
C.E.O. Bodgeit, Leggit & Scarper. International.
"Stuffing things up completely since 1973"
 
Hey gizmo...

the sql string ur looking for would run along the lines of:

SELECT * FROM tblA WHERE tblA.PKey NOT IN (SELECT tblB.FKey FROM tblB)

tblA.PKey would be linked with tblB.FKey

--------------------
Procrastinate Now!
 
Crowley,

Cheers for that but all I gte is a Syntax Error and the WHERE is then highlighted.

HELP!!!

Regards, Phil.
C.E.O. Bodgeit, Leggit & Scarper. International.
"Stuffing things up completely since 1973"
 
are you sure you've got the brackets in properly?

add another set to the embedded select...

--------------------
Procrastinate Now!
 
Re typed and double checked and it works fine!!!
Have a *

Regards, Phil.
C.E.O. Bodgeit, Leggit & Scarper. International.
"Stuffing things up completely since 1973"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top