
Originally Posted by
tylerg11
But a split form lets you select a record which displays in the main form. How could you do that with a subform?
With coding and it would not have anything in the Master/Child links. The On Current event of the subform (datasheet) would have:
Code:
Dim rst As DAO.Recordset
Set rst = Me.Parent.RecordsetClone
rst.FindFirst "[IDFieldNameHere]=" & Me!IDFieldHere
If rst.NoMatch Then
msgbox "Error! Contact your IT Representative", vbExclamation, "No Match Found"
Else
Me.Parent.Bookmark = rst.Bookmark
End If
rst.Close
Set rst = Nothing