It works great! Thanks.
"Ofer Cohen" <(E-Mail Removed)> wrote in message
news:A39FC2AC-1714-40A1-A4FD-(E-Mail Removed)...
> Check this link on "Preventing Duplicates from being entered"
>
> http://www.databasedev.co.uk/duplicates.html
>
> --
> Good Luck
> BS"D
>
>
> "Song" wrote:
>
>> I have a form to add new record using navigation button at the bottom.
>> When
>> fill in all the fields, Access would give a nasty warning message when
>> stID
>> (primary key) is already exist.
>>
>> I need code that when user enters duplicate value in stID (which is the
>> first control on the form), it would be notified such stID already exist
>> and
>> would locate the existig record and display on the form.
>>
>>
>>
>>
>>
>>