How do i delete unmatched data in my Query ?

G

Guest

I ran a query with Table 1 matching it on Table 2 .
I found a lot of unmatched data.
How can I delete the data from Table 1 without doing it manually?
 
K

kingston via AccessMonster.com

Use a subquery to create a delete query:

DELETE [Table 1].* FROM [Table 1] WHERE [Table 1].[ID] Not In (SELECT [ID]
FROM [Table 2];);
 

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