C
cpnet
I'm trying to create a master-detail form that links records with one master
table, to 2 detail tables. The basic way of doing this is easy enough, but
I want to use data sheets for the master as well as the 2 detail forms. In
other words, rather than just showning one record at a time from my master
table, I want to show all records from the master table all of the time, and
only the detail records corresponding to the selected master record. Here's
what I'm trying to do:
- Create 3 subforms (all using Datasheet view), linked to my master and 2
detail tables respectively
- Create a 'base' form that will host my 3 subforms
- When the user changes the current record in the "master" subform, the
"detail" subforms should be filtered to reflect the changed record.
I haven't done a ton with VBA, so I'm not clear on how the "On Current"
event of my master subform can change the filters for my 2 detail subforms
(when all 3 are placed on the same 'base' form).
table, to 2 detail tables. The basic way of doing this is easy enough, but
I want to use data sheets for the master as well as the 2 detail forms. In
other words, rather than just showning one record at a time from my master
table, I want to show all records from the master table all of the time, and
only the detail records corresponding to the selected master record. Here's
what I'm trying to do:
- Create 3 subforms (all using Datasheet view), linked to my master and 2
detail tables respectively
- Create a 'base' form that will host my 3 subforms
- When the user changes the current record in the "master" subform, the
"detail" subforms should be filtered to reflect the changed record.
I haven't done a ton with VBA, so I'm not clear on how the "On Current"
event of my master subform can change the filters for my 2 detail subforms
(when all 3 are placed on the same 'base' form).