NXMold
Technical User
- Jul 22, 2008
- 104
I am building a complex interface, the main form is blank with two sub-forms. The recordset of each subform is linked via code on the main form.
In this way, when you select a record from SubFrm1 (list view) you can edit it in SubFrm2 (detailed view). I like this approach better than having so many popup forms, you don't get lost/disoriented in the application as easily.
Now for the problem:
I want to add a third sub form. This one has a different recordset, but I want it synced with the other two (the third form should display data realted to the selected record, and change as you scroll through records).
I know this relationship is possible with parent/child linked fields, but because of the way I constructed three sub-forms on a blank container form this relationship is not possible.
Code:
Set Me.SubFrm2.Form.Recordset = Me.SubFrm1.Form.Recordset
In this way, when you select a record from SubFrm1 (list view) you can edit it in SubFrm2 (detailed view). I like this approach better than having so many popup forms, you don't get lost/disoriented in the application as easily.
Now for the problem:
I want to add a third sub form. This one has a different recordset, but I want it synced with the other two (the third form should display data realted to the selected record, and change as you scroll through records).
I know this relationship is possible with parent/child linked fields, but because of the way I constructed three sub-forms on a blank container form this relationship is not possible.