use a query something like
Code:
DELETE *
FROM tblKeyWords WHERE pkKeyWords NOT IN (SELECT MIN(pkKeyWords) FROM tblKeyWords T WHERE KeyWords=tblKeyWords.KeyWords)
Make sure you take a copy of the table first in case you do not get the required result.
Actually that does not go far enough - before deleting the duplicate records, you need to update the trelBooksKeyWords table to only use the first instance
make this translation query
Code:
SELECT O.pkKeyWords AS OldPK, N.pkKeyWords AS NewPK
FROM tblKeyWords O INNER JOIN tblKeyWords N ON O.KeyWords=N.KeyWords
WHERE O.pkKeyWords<>N.pkKeyWords
In you example this should produce a result of
OldPK...NewPK
220......195
then create an update query
Code:
UPDATE trelBooksKeyWords SET pkKeyWords=NewPK
FROM trelBooksKeyWords INNER JOIN TranslationQuery ON trelBooksKeyWords.pkKeyWords=TranslationQuery.OldPK