Is it really a subform? If so, you should be able to link the main form with the subform by using the Linked Master and Child Fields to display the related records in the subform.
Is it really a subform? If so, you should be able to link the main form with the subform by using the Linked Master and Child Fields to display the related records in the subform.
Private Sub comboName_AfterUpdate()
If Me.comboName.ListIndex > -1 Then
'valid value from combobox
With Me.RecordsetClone
.FindFirst "[Employee ID] = " & Chr(34) & Me.comboName & Chr(34)
Me.Bookmark = .Bookmark
End With
End If
End Sub
And the answer several have given you is to link the Master and Child fields.
Best practice is to link them with the Primary and Foreign keys, which would be number types. The EMP ID does not have to be the Primary Key. Just set the PK to Autonumber and forget about it, then link them.