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

Synch Datasheet view with Detail 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 frmAgree.Form.Recordset = _
frmAgree2.Form.Recordset

which synchronizes the records, so that when I select a record in my subform1 datasheet view, the corresponding memo fields for the record are shown in subform2.

The problem is that when I sort ecords using the column headings 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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top