check duplicates

maravinds

Registered User.
Local time
Today, 02:51
Joined
Apr 26, 2006
Messages
26
hai everyone,

i have a table with 5 columns (all of them are text) and i need to check that the combination (combined value) of 3 columns does not get repeated.

how is this possible



aravind.s
 
make those three your primary key.
 
hai,
i cannot make the three values as a primary key because i have an autonumber column which is set as a primary key
 
how about creating an index?
- open your table in design view.
- click indexes on the menu (the button with the lightning bolt)
- on an empty line under Index Name type NoDups; at the bottom (properties): Primary: No; Unique: Yes; Ignore Nulls: up to you.
- under Field Name (beside NoDups) select the three fields you want:
Code:
NoDups    Fld1
          Fld2
          Fld3
- if you have duplicates then you have to fix the data first (i think).

- without seeing what you're up to i can't say that this is the best approach but maybe it will help for now.
 
Last edited:

Users who are viewing this thread

Back
Top Bottom