Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you sync subforms?

Status
Not open for further replies.

nathanstevenson

IS-IT--Management
Oct 4, 2002
70
GB
Hello all,

How do you sync a subform based on the same key? eg. link
subform A to mainform by primary key. THen link subform B to subform A, by subform A's foreign key and subform B's primary key?

It should be very simple, but it is doing my head in!

Thanks,
Nathan
 
try this:

- create in the mainform a unbound editfield i.e. editDummyID
- in SubFormA's Form_Current() add
Me.Parent.editDummyID.Value = Me.foreignkeyXYZ
- link SubFormB to editDummyID

another solution is to set the control source of the dummyfield to the subformA's foreign key. When I used this I had refresh problems (subforms began flickering)...

hope this helps



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top