K
Karl
I have 3 tables that are linked.
Category Table:
Category ID (primary key) -autonumber
Category Name
Products Table:
Product ID (primary key) - autonumber
Category ID
Product Name
Components Table:
Component ID (primary key) - autonumber
Product ID
Equipment Name
Make
Model
I have created a form (Form1) that has an unbound combo box that lists all
the names of categories for all the products I have. I have a subform (Form
2) with a unbound combo box for products. For this combo box on the products
that are associated with the chosen category are shown. I would like to
create a subform (Form 3) in Form 2 that shows the Component information of
each product selected. My original plan was to simply link these by product
id as a master and child field, however as the product and category combo
boxes are unbound I don’t think this is possible. I tried to make the product
combo box a bound field with the products table the record source and product
name the control source (I also tried to make product id the control source
and it caused my combo box to quit working properly). I then added a text box
with the product id as the control source that would allow me to use as a
master field for the link to the child field (product id on form 3). However
the text box with the product id doesn’t update to the correct product id
number for the product name chosen in the products combo box. Note: I left
the category box unbound.
I was wondering why this isn’t working or if there is a better method for
connecting subform 2 to subform 3.
Thanks a lot,
Karl Zimmer
Category Table:
Category ID (primary key) -autonumber
Category Name
Products Table:
Product ID (primary key) - autonumber
Category ID
Product Name
Components Table:
Component ID (primary key) - autonumber
Product ID
Equipment Name
Make
Model
I have created a form (Form1) that has an unbound combo box that lists all
the names of categories for all the products I have. I have a subform (Form
2) with a unbound combo box for products. For this combo box on the products
that are associated with the chosen category are shown. I would like to
create a subform (Form 3) in Form 2 that shows the Component information of
each product selected. My original plan was to simply link these by product
id as a master and child field, however as the product and category combo
boxes are unbound I don’t think this is possible. I tried to make the product
combo box a bound field with the products table the record source and product
name the control source (I also tried to make product id the control source
and it caused my combo box to quit working properly). I then added a text box
with the product id as the control source that would allow me to use as a
master field for the link to the child field (product id on form 3). However
the text box with the product id doesn’t update to the correct product id
number for the product name chosen in the products combo box. Note: I left
the category box unbound.
I was wondering why this isn’t working or if there is a better method for
connecting subform 2 to subform 3.
Thanks a lot,
Karl Zimmer