I have a main form called “frmParts” and a subform call “frmPartSub”. I have two combo boxes on the frmParts that lookup the parts in question using different fields in the record. This in turn fills in the subform. I need a 3rd combo box to look up records that are in the subform. Can this be done and if so how?
I have tried the following in various combinations to no avail:
Private Sub cboFindRMA_AfterUpdate()
Dim rs As Object
Forms!frmParts!frmPartsSub.SetFocus
Forms!frmParts!frmPartsSub.Form!RMA_DPS.SetFocus
Set rs = Me.Recordset.Clone
rs.FindFirst "[RMA_DPS] = '" & Me![cboFindRMA] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
I have tried the following in various combinations to no avail:
Private Sub cboFindRMA_AfterUpdate()
Dim rs As Object
Forms!frmParts!frmPartsSub.SetFocus
Forms!frmParts!frmPartsSub.Form!RMA_DPS.SetFocus
Set rs = Me.Recordset.Clone
rs.FindFirst "[RMA_DPS] = '" & Me![cboFindRMA] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub