English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Is there any way to check duplicate names while filling data in MSAccess?

2007-02-07 00:26:21 · 2 answers · asked by APNim 2 in Computers & Internet Programming & Design

2 answers

In your table's design screen, highlight the field you don't want duplicated. Under Indexed (at the bottom), choose "Yes (No Duplicates)"

Should fix it.

2007-02-07 00:32:56 · answer #1 · answered by MinstrelInTheGallery 4 · 0 0

Check the INDEXED property of the FIELD OBJECT in the table design window. One of the possible values is "Yes - NO DUPLICATES". The default INDEXED value is "No". If you change the NO to the YES NO DUPLICATES value, that should resolve your issue.

However, that might not be such a good idea. Suppose you had multiple customers named "MATT SMITH". If you have the name field set to "YES, NO DUPLICATES", then ONLY ONE of them can be entered into your database. A better idea might be to set that index on the PHONE NUMBER field, so you can have multiple MATT SMITHs as long as they have different phone numbers.

2007-02-07 12:19:51 · answer #2 · answered by Richard H 7 · 0 0

fedest.com, questions and answers