prevent repeatition in fields which is not a primary key

G

Guest

I have two table with the relationship 1: many
Table 1 fields are A, B, c where c is the primary key
Tabe2 fileds are D, C, E, . whre D is the primary key
I are using subform to capture data but I do not want to repeat the same
values for C and E in table 2 . how do i go about it.
 
R

Rick Brandt

Matilda said:
I have two table with the relationship 1: many
Table 1 fields are A, B, c where c is the primary key
Tabe2 fileds are D, C, E, . whre D is the primary key
I are using subform to capture data but I do not want to repeat the
same values for C and E in table 2 . how do i go about it.

Open Table2 in design view and then from the menu choose View - Indexes. You
want to add a unique index that contains both fields C and E. It will look
like...

IndexName C
E

(*) Unique (found at the bottom of the dialog)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top