Hi all,
I have a form and a subform having 1-M relationship by Hearder_ID. This what I'm trying to do... I want to type the HeaderName (not Header_ID) in a CboBox to get all detail information which is appear in the subform
The code below I got from faq702-4933, but I cannot figure out what I did wrong.
Anyone please help
I have a form and a subform having 1-M relationship by Hearder_ID. This what I'm trying to do... I want to type the HeaderName (not Header_ID) in a CboBox to get all detail information which is appear in the subform
The code below I got from faq702-4933, but I cannot figure out what I did wrong.
Anyone please help
Code:
Private Sub Combo6_AfterUpdate()
Dim Header_ID As Integer
Header_ID = Me.Combo6.Column(0)
With Me.[Table2Subform].Form
.RecordsetClone.FindFirst "Header_ID = " & Header_ID
If Not .RecordsetClone.NoMatch Then
.Bookmark = .RecordsetClone.Bookmark
End If
End With
End Sub
[code]