dbTalk Databases Forums  

Linked Fields?

comp.database.ms-access comp.database.ms-access


Discuss Linked Fields? in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JustCurious
 
Posts: n/a

Default Linked Fields? - 12-29-2003 , 09:50 PM






I have a form with two fields. In the 1st field the user can select from six
options in a lookup table. However each of the six options has between three
and twenty-three sub headings. I am trying to get the appropriate set of
subheadings linked to the 2nd field once the 1st field is sellected.

Example: once the user selects COW for the first field, they can choose
from MILK, BUTTER, CHEESE, or MEAT for field 2. If they choose PIG then
field 2 gives them a whole new set of options.



Reply With Quote
  #2  
Old   
Andy
 
Posts: n/a

Default Re: Linked Fields? - 01-06-2004 , 06:25 PM






You need to have two tables with a one to many relationship

The Table with the Animals (Cow for example) should have a Auto Number
Primary Key field(I would use the field name pkAnimal)
and a text field named Animal
that would relate to the Foreign Key (field - fkAnimal) in the other Table
named Product(Milk etc.)

You could then build your form using a main form(Animal) and a continus sub
form with the relationships between the tables.


--
Andy Austin

"JustCurious" <gsbooker1 (AT) earthlink (DOT) net> wrote

I have a form with two fields. In the 1st field the user can select from six
options in a lookup table. However each of the six options has between three
and twenty-three sub headings. I am trying to get the appropriate set of
subheadings linked to the 2nd field once the 1st field is sellected.

Example: once the user selects COW for the first field, they can choose
from MILK, BUTTER, CHEESE, or MEAT for field 2. If they choose PIG then
field 2 gives them a whole new set of options.




Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.