A
Arnold
Hi there,
I have a form with 2 subforms to organize bottles in mind. Here's some
background info:
Mainform = frmProduct, which contains fields for pricing, status, etc.
of complete bottles (bottle + cap).
The mainform has 2 independent subforms that must be visible and
side-by-side on the mainform:
sfrmBottle, which has fields for bottle dimensions, name, etc., and
sfrmCap, which has fields for bottle cap specs, name, color, etc..
Since many caps can fit 1 bottle, and many bottles can fit 1 cap, there
is a many-to-many relationship, so there are 2 main tables (tblBottles
and tblCaps) and a join table (jtblProducts).
The mainform's record source would be the join table, jtblProducts, and
the subform's record sources would be the other 2 tables. So, before a
product can be finalized, the particular bottle + cap combination must
be entered into the subforms, and then 'applied' via cmdbuttons to the
final product. The cmdbuttons will change the BottleID and CapID on
the main form to match the ID's on the subforms.
I've seen something similar to this before, but only 1 subform was
involved; the data in the subform's underlying table had to be entered
in prior to being applied to the main form's record. The main form's
record was the default record until otherwise changed by the 'apply'
cmdbuttons.
Desired functionality: I'd like to be able to toggle the filtering
(record sources) of the subforms with the mainform. Users could browse
through the various bottle and cap records in the subforms separately
until they find a combination they like, then 'apply' them both to a
final product. Users then could turn the parent/child linking back on
to continue looking through all the existing bottle + cap combinations
that have already been established on the main form, while having the
the corresponding data in the bottles and caps subforms change
accordingly as they browse.
Hope this make sense and isn't too far-fetched. Any help in
brainstorming would be greatly appreciated.
Thanks,
Arnold
I have a form with 2 subforms to organize bottles in mind. Here's some
background info:
Mainform = frmProduct, which contains fields for pricing, status, etc.
of complete bottles (bottle + cap).
The mainform has 2 independent subforms that must be visible and
side-by-side on the mainform:
sfrmBottle, which has fields for bottle dimensions, name, etc., and
sfrmCap, which has fields for bottle cap specs, name, color, etc..
Since many caps can fit 1 bottle, and many bottles can fit 1 cap, there
is a many-to-many relationship, so there are 2 main tables (tblBottles
and tblCaps) and a join table (jtblProducts).
The mainform's record source would be the join table, jtblProducts, and
the subform's record sources would be the other 2 tables. So, before a
product can be finalized, the particular bottle + cap combination must
be entered into the subforms, and then 'applied' via cmdbuttons to the
final product. The cmdbuttons will change the BottleID and CapID on
the main form to match the ID's on the subforms.
I've seen something similar to this before, but only 1 subform was
involved; the data in the subform's underlying table had to be entered
in prior to being applied to the main form's record. The main form's
record was the default record until otherwise changed by the 'apply'
cmdbuttons.
Desired functionality: I'd like to be able to toggle the filtering
(record sources) of the subforms with the mainform. Users could browse
through the various bottle and cap records in the subforms separately
until they find a combination they like, then 'apply' them both to a
final product. Users then could turn the parent/child linking back on
to continue looking through all the existing bottle + cap combinations
that have already been established on the main form, while having the
the corresponding data in the bottles and caps subforms change
accordingly as they browse.
Hope this make sense and isn't too far-fetched. Any help in
brainstorming would be greatly appreciated.
Thanks,
Arnold