eliminating records

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have two tables and would like to cross reference the two tables and
eliminate those records which do not have a match from Table A in Table B
based on one key field. Any help would be greatly appreciated as I am fairly
new to Access.
 
You need a query like:

DELETE * FROM [Table B]
WHERE [Table B].[IDfield] Not In
(SELECT [Table A].]IDField] FROM [Table A])

HTH,
Nikos
 

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

Back
Top