The reason that the duplicate search query will not allow you to delete records is because it is basically just a cumulative query, it counts the number of duplicates found and returns cases when the counter is greater than 1.
Keep in mind that if you made a deletion request based on duplicate searches, it will delete all rows that have duplicate values, which may not be what you want. You want to delete all but one of the duplicates.
You should try to delete all duplicate entries except one, with the exception of the ID column in your comparison. I suggest the simplest way to do this is to make a make-table query for all unique values (select Distinct Field1, Field2 ... from MyTable) instead for each field except for the ID field, using the results in a to create a new table from about 2000 records (if half of the duplicates).
Then create an identifier column in your new table, use an update request to update that identifier to the first matching identifier in the original table (you can do this with DLookup , which will return the first EXPRESSION value, where CRITERIA is true in DOMAIN).
The DLookup () function returns a single value from a single field, even if more than one record meets the criteria. If no entry meets the criteria, or if there are no entries in the domain, DLookup () returns Null.
Because you identify the first comparable identifier based on all other fields that are unique values, unsurpassed identifiers will belong to duplicates. You will change the PK relation by identifying the first match key defined by a set of unique fields. After that, you should set the PK identifier. Of course, this assumes that the identifier does not have an inherent meaning, and you do not need to save one specific identifier for a given duplicate row by any of the identifiers belonging to other duplicate rows. This assumes that you take care of the data in the ID column to save it for all remaining rows, otherwise just ignore the DLookup step and select "Select Separate" on all columns except the identifier.
ΰΈΰΈ²ΰΈ§
source share