@NeoPa
NeoPa:
As we're working with the same data... and OP has made an effort perhaps a slight nudge in the right direction? After all... OP was about using a query to accomplish the task
Annetiti:
This doesn't follow in your OP as you wanted a single query to do the work on a given table... what you now have is the question: "How do I delete records in one table that match records in a second table"
Two tables...
tbl_withallofthedata
tbl_deletetheserecords
What ever you do here... MAKE A BACKUP of the tbl_withallofthedata!
Just because I like to reward a good effort: slight nudge... you need a query, show both tables, link, etc...
-
In a answer to your OP, yes a query can manage this...
You will need a query to pull the duplicate records (posts #2 and #3). The wizard isn't elegant, but it works.
You then need to look at this query and make a choice as to which records to keep and what field(s) will allow you do this... date/time fields.... primary keys... but you must have a unique means (post #4) so that you can exclude the records you want to keep create a new query based on the wizard results.
Now once you have a query that shows only the records to delete... then you can run the query as a delete query.
This is not difficult, just a lot of little queries to build or a lot of SQL lines to type.
BACK UP your data... and give it a try and post back the SQL that you created.
-z