Hi Kirt
You could KJ's excellent answer or
SELECT COUNT(ECMA)
AS SomeName FROM TableName;
This has the benefit of showing which records are relevant. You can then
alter the duplicate entries. The reason for this is that the primary key
really should not be something that can be altered by a user (the primary key
is best left hidden and is normally best used simply as a unique reference to
identify specific records).
Hope this helps
--
Wayne
Manchester, England.
Enjoy whatever it is you do
JK said:
Kirt,
This should work:
SELECT [ECMA], ... some other fields .. FROM [YrTable]
WHERE DCount("[ECMA]","YourTable","[ECMA]=" & [ECMA])>1
ORDER BY ... whatever ...;
SELECT Countries.Country, Countries.DST_ID
FROM Countries
WHERE DCount("[DST_ID]","Countries","[DST_ID]=" & [DST_ID])>1
ORDER BY Countries.DST_ID;
Regards/JK
I have a table with Approx 900 records. I want to be able to filter all
duplicate values that exist in a column (ECMA). This is because I want to
make this Field the Primary key.