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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Synch two subforms on a Main form

Status
Not open for further replies.
May 5, 2000
168
US
I have a main form with subform1 displaying a datasheet on the upper half of the form and subform2 displaying two detail memo fields on the bottom.

On the main form "On Open" event I have this code:
Set subform1.Form.Recordset = _
subform2.Form.Recordset

which synchronizes the records. When I select a record in my subform1 datasheet view, the matching memo fields for the record are shown in subform2.

The problem is that when I sort or filter records in the datasheet view, the synchronizing no longer works.

My main form is not based on a recordset, and the subforms are both obviously based on the same recordset.

Anyone have a solution?
 
Move the code to the OnCurrent event and see if that doesn't keep them in sync a little better.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top