View Single Post
  #2  
Old April 18th, 2010, 07:08 PM posted to microsoft.public.access.gettingstarted
Duane Hookom[_4_]
external usenet poster
 
Posts: 316
Default bad relationship?

There should not be a GroupID in the Person table. The PersonGroup table
should consist of minimally a PersonID and GroupID combination. You create a
subform based on the PersonGroup table and place it on your main Person
form. The only control needed in the subform is a combo box with a control
source like:
SELECT GroupID, GroupTitle
FROM Groups
ORDER BY GroupTitle;
Since you didn’t provide actual field names, you may need to change this.

Set the Link Master/Child properties to the PersonID field.


--
Duane Hookom
MS Access MVP


"shumate62" wrote in message
...
Ok- so I have created a table for my contacts called Person (with address,
phone, etc) and table for Group (with speaker, author, attendee) and then
a
table for PersonGroup and created a one-to-many between the two.
Then I tried to create a Lookup wizard for GroupID from the Person table
in
order to be able to select the groups that the person are a part of.
But yet when I go to forms- nothing. Everything seems to save ok in tables
and then I create the form and there's nothing in my drop down.
Is this the wrong way to create the tables?
I want to be able to fill out my Person forms with contact information and
then be able to select several group types in their contact form. Is the
lookup going to allow for multiple selections of groups anyway?