Private Sub Form_Open(Cancel As Integer)
' This is the main form open event handler
Me.RecordSource = "tblAutoMtce" 'set the recordsource of the main form
Me.frmAutoMtceSub.SourceObject = "fTestDataDS" 'load datasheet ubform w/ blank RecordSource
Set Me.frmAutoMtceSub.Form.Recordset = Me.Recordset 'set subform recordset to same object as main form's
End Sub
Me.frmAutoMtceSub.SourceObject = "fTestDataDS" 'load datasheet subform w/ blank RecordSource
Nope. Still not attached ?Sorry now attached
Now that really is easy!
It took 2 minutes - mostly to remove the garbage code I had tried earlier
I used a continuous subform as I'd already created that
Attached a simple db with an emulated split form using Mark's code for the benefit of the OP (JamesJoey)
I'm sure he'll be back here passing on his thanks
Many thanks to both Greg & Mark for their contributions - I only wish you'd got involved earlier ...