INTELLIGENT WORK FORUMS FOR COMPUTER PROFESSIONALS
Come Join Us!
Are you a Computer / IT professional? Join Tek-Tips now!
- Talk With Other Members
- Be Notified Of Responses
To Your Posts
- Keyword Search
- One-Click Access To Your
Favorite Forums
- Automated Signatures
On Your Posts
- Best Of All, It's Free!
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.
Partner With Us!
"Best Of Breed" Forums Add Stickiness To Your Site

(Download This Button Today!)
Member Feedback
"...Compliments on a fantastic web site. I have learned so much from my threads and even if sometimes I cannot solve the problem, it gives me the reassurance that I am not the only one putting up with it!..."
Geography
Where in the world do Tek-Tips members come from?
|
Sync multiple forms, different recordsets, not parent/child?
|
|
|
NXMold (TechnicalUser) |
14 May 09 9:43 |
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. CODESet 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. |
|
|
MajP (TechnicalUser) |
14 May 09 9:56 |
|
|
MajP (TechnicalUser) |
14 May 09 10:10 |
Access does not make this clear and the Wizards tend to suggest that you need a parent child relationship. Actually the subform control is more powerful than that.
For example I can simply link a subform to an unbound text box or other control. If I type in the number 1 into that box I can show all records with a value of 1 in one of the fields. Normally that is a foreign key. Then any new records will get the value 1 in the linked field.
Subforms do not require a parent child relationship to link. |
|
|
NXMold (TechnicalUser) |
14 May 09 10:15 |
Thats fantastic!!!! Thank you.
On before update of the 'list' sub form it sets the value of an unbound text box on the main form, the other sub forms are linked to that text box. Pretty snappy. |
|
|
 |
|