This allows a person to be assigned to only one project.
It shouldn't, if it is a compound unique index. Under the situation I
described you should be able to see something like this in your
People_Projects table
People_ID Project_ID
1 1
2 1
1 2
2 2
2 3
All of those are unique records and, as you can see, People_ID 1 is tied to
2 projects and People_ID 2 is tied to 3 projects.

Signature
Lynn Trapp
MS Access MVP
www.ltcomputerdesigns.com
Access Security: www.ltcomputerdesigns.com/Security.htm
Jeff Conrad's Access Junkie List:
http://home.bendbroadband.com/conradsystems/accessjunkie.html
> This allows a person to be assigned to only one project.
>
[quoted text clipped - 4 lines]
>>> Table People\Projects kepts track of the people assigned to a project.
>>> How can I keep a person from being assigned to a project twice.
elillis - 18 Jul 2005 20:59 GMT
I must be doing something wrong.
I get a duplicate indication error when I try to enter the second record.
I put yes (no duplicates) in thje indexed field.
--Ed
> It shouldn't, if it is a compound unique index. Under the situation I
> described you should be able to see something like this in your
[quoted text clipped - 18 lines]
>>>> Table People\Projects kepts track of the people assigned to a project.
>>>> How can I keep a person from being assigned to a project twice.
Lynn Trapp - 19 Jul 2005 15:12 GMT
I think the problem is that you do not have a compound index. You need the
unique index to be against both fields at the same time. The easiest way to
accomplish that is to make the 2 fields a compound primary key.

Signature
Lynn Trapp
MS Access MVP
www.ltcomputerdesigns.com
Access Security: www.ltcomputerdesigns.com/Security.htm
Jeff Conrad's Access Junkie List:
http://home.bendbroadband.com/conradsystems/accessjunkie.html
>I must be doing something wrong.
> I get a duplicate indication error when I try to enter the second record.
[quoted text clipped - 24 lines]
>>>>> Table People\Projects kepts track of the people assigned to a project.
>>>>> How can I keep a person from being assigned to a project twice.
elillis - 19 Jul 2005 19:17 GMT
Thanks,
I put indexed yes with duplicates and primary keys. That works!
--Ed
>I think the problem is that you do not have a compound index. You need the
>unique index to be against both fields at the same time. The easiest way
[quoted text clipped - 29 lines]
>>>>>> project. How can I keep a person from being assigned to a project
>>>>>> twice.