View Single Post
  #4  
Old November 24th, 2009, 10:05 PM posted to microsoft.public.access.tablesdbdesign
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default How do I link one person to another in the same table?

Use an Autonumber field as primary key field in the Contacts table.

If the known contacts are only one way like employes to supervisor add a
number - long integer field also as Supervisor. Then in the relations
window add the Contacts table twice (Access will add a sufix, Contacts_1 to
the second instance). Create a one-to-many from first table primary key
field to the Supervisor field of the second (many employes can have the same
boss).

If the contacts are multiple in both directions then you need a junction
table, JCTContact with two number - long integer fields. Name them something
like Cont1 and Cont2. The in the relations window add the Contacts table
twice and the junction table once. Create a one-to-many from first table
primary key field to the Cont1 field of the junction table. Repeat from
second Contacts to Cont2.

Use form/subform for Contact to Contact. The subform to have combo to
select associated contact for person shown in the main. Use scrolling to
locate person in main.

--
Build a little, test a little.


"E289" wrote:

I have a table of Contacts. Some of my contacts know other contacts, and I
would like to indicate that in their record. However, for Data Type, I
cannot create a drop down list of contacts from within the table to choose
from.

Any idea how to to this? Or, if this is not possible, can you suggest
another way to indicate "who knows whom"?