INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

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!

E-mail*
Handle

Password
Verify P'word
*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
Partner Button
(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.  

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.   
Check Out Our Whitepaper Library. Click Here.
MajP (TechnicalUser)
14 May 09 9:56

Quote:


but because of the way I constructed three sub-forms on a blank container form this relationship is not possible.
No.Not a true statement.  See how this is done.

http://www.4shared.com/get/97759751/2cc085c4/SubForms.html


 
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.

Start A New Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Promoting, selling, recruiting and student posting
are not allowed in the forums.
Posting Policies

LINK TO THIS FORUM!
(Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum)
TITLE: Microsoft: Access Forms Forum at Tek-Tips
URL: http://www.tek-tips.com/threadminder.cfm?pid=702
DESCRIPTION: Microsoft: Access Forms technical support forum and mutual help system for computer professionals. Selling and recruiting forbidden.