PC Review


Reply
Thread Tools Rate Thread

bad relationship?

 
 
shumate62
Guest
Posts: n/a
 
      18th Apr 2010
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?
 
Reply With Quote
 
 
 
 
Duane Hookom
Guest
Posts: n/a
 
      18th Apr 2010
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" <(E-Mail Removed)> wrote in message
news:56DB9B81-8906-4699-A25E-(E-Mail Removed)...
> 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?


 
Reply With Quote
 
shumate62
Guest
Posts: n/a
 
      18th Apr 2010
OK
1. I took away the groupID from Person table
2. I created the subform through wizard and got just another blank box
without the dropdown bos to choose from. to create the subform I just
followed the help instructions which are pretty straightforward so I dont'
know where that lead me wrong...



"Duane Hookom" wrote:

> 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" <(E-Mail Removed)> wrote in message
> news:56DB9B81-8906-4699-A25E-(E-Mail Removed)...
> > 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?

>

 
Reply With Quote
 
Gina Whipp
Guest
Posts: n/a
 
      18th Apr 2010
shumate62,

Just to be clear are you trying to select a Group per person? If yes... and
before you go into anymore detail...

1. Does each person only belong to one group?
2. Did you use the wizard to create a look-up field in the table?

--
Gina Whipp
2010 Microsoft MVP (Access)

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"shumate62" <(E-Mail Removed)> wrote in message
news:A9AA26FD-20D8-4C62-8E2B-(E-Mail Removed)...
OK
1. I took away the groupID from Person table
2. I created the subform through wizard and got just another blank box
without the dropdown bos to choose from. to create the subform I just
followed the help instructions which are pretty straightforward so I dont'
know where that lead me wrong...



"Duane Hookom" wrote:

> 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" <(E-Mail Removed)> wrote in message
> news:56DB9B81-8906-4699-A25E-(E-Mail Removed)...
> > 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?

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
table relationship in query & relationship mode =?Utf-8?B?UmxhdGlvbnNoaXA=?= Microsoft Access 1 3rd Oct 2005 04:07 PM
Relationship not in relationship window - I can't update table =?Utf-8?B?QU1MUg==?= Microsoft Access Database Table Design 3 28th Apr 2005 01:03 PM
Re: Relationship not showing up in relationship view Allen Browne Microsoft Access Database Table Design 1 10th Aug 2004 04:28 PM
Relationship not showing up in relationship view Bob Microsoft Access Database Table Design 1 10th Aug 2004 12:47 PM
Re: Relationship not showing up in relationship view tina Microsoft Access Database Table Design 2 10th Aug 2004 04:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:41 AM.