It just occurred to me,
If you want to make [ECMA] a primary key you will also need to test for Null
values in it, if relevant:
SELECT [ECMA], ... some other fields .. FROM [YourTable]
WHERE DCount("[ECMA]","YourTable","[ECMA]=" & [ECMA])>1 OR IsNull([ECMA])
ORDER BY ... whatever ...;
Regards/JK
"JK" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>
>
> "Kirt84" <(E-Mail Removed)> wrote in message
> news:B7962392-C87B-4D48-8A11-(E-Mail Removed)...
>>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.
>> --
>> Thank you for your help
>
>
|