I created a form that contains 1 subform ( lets call it lvl 1 subform)
in which I created another subform( lvl 2 subform).
lvl 1 subform acts like a child to the main form, works well, it
returns each equipment's corresponding component type.
lvl2 does the same, returns all component IDs that have the same
Component type, but with different equipment Id, (well,as I expected)
which is really annoying. What I want is, when I pick a equipment, it
only returns the components that are linked to both component type
(lvl1) and equipment id(main form), so it automatically tells me what
equipment type it is and what components the equipment has, (not what
other equipments have the same kind component).
My question is how do I link both(lvl1 and main) at the same time?
Table1:Equipment for Main form
Equipment id (pk)
Equipment
Equipment type id(fk)
......
......
Table2:Equipment Type for Main form
Equipment type id(pk)
Equipment type
......
......
Table for 1st lvl subform ( link to main: Equipment type id -- Equipment type id)
Component type id(pk)
Component type
Equipment type id(fk)
......
......
Table for 2nd lvl subform( link to 1st lvl subform : Component type id -- Component type id)
Component id(pk)
Component type id (fk)
Equipment id(fk)
Component Name
........
in which I created another subform( lvl 2 subform).
lvl 1 subform acts like a child to the main form, works well, it
returns each equipment's corresponding component type.
lvl2 does the same, returns all component IDs that have the same
Component type, but with different equipment Id, (well,as I expected)
which is really annoying. What I want is, when I pick a equipment, it
only returns the components that are linked to both component type
(lvl1) and equipment id(main form), so it automatically tells me what
equipment type it is and what components the equipment has, (not what
other equipments have the same kind component).
My question is how do I link both(lvl1 and main) at the same time?
Table1:Equipment for Main form
Equipment id (pk)
Equipment
Equipment type id(fk)
......
......
Table2:Equipment Type for Main form
Equipment type id(pk)
Equipment type
......
......
Table for 1st lvl subform ( link to main: Equipment type id -- Equipment type id)
Component type id(pk)
Component type
Equipment type id(fk)
......
......
Table for 2nd lvl subform( link to 1st lvl subform : Component type id -- Component type id)
Component id(pk)
Component type id (fk)
Equipment id(fk)
Component Name
........