The SQL would look something like
DELETE DistinctRow [YourTable].*
FROM [YourTable]
WHERE [YourTable].[TaxID] IN (SELECT TaxId FROM [YourQuery])
OR
If the records in your query are updatable, then you could select 200
records (or so) in the query and press the delete key. Repeat 15 times and
your done.
OR
try opening your query in design view and then selecting Query: Delete
query from the menu. Then Select Query:Run from the menu.
Lauren said:
Jeff,
This is definitely what I need to do. I have clients with 2-4 different
accounts. I want to mail to clients that have account A but not Account
B.
I've imported the list of clients with account A and B from Excel into one
table. I used the tax-id number as the unique identifier. I can get to a
point where a find duplicate query gives me the names of the duplicate
clients. But there are over 13,000 records in the table and 3000
duplicated
clients. To go through and manually delete them would take too much time.
Isn't there a command that can take the query results and remove them from
the table?
Thank you so much for your help!
Lauren