G
Guest
I have a form with two listboxes. The first list box opens the form frmParts
and finds the record based on the selection. I am having trouble getting the
second listbox to open the frmParts with the subform qryProcedure and find
the record with the selection on both listboxes. frmParts and qryProcedure
are on the same form. Here is the code that works for the first one:
Private Sub List2_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmParts"
stLinkCriteria = "[Part_ID]=" & Me![List2]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
Please let me know the correct code for the second listbox (List4)
and finds the record based on the selection. I am having trouble getting the
second listbox to open the frmParts with the subform qryProcedure and find
the record with the selection on both listboxes. frmParts and qryProcedure
are on the same form. Here is the code that works for the first one:
Private Sub List2_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmParts"
stLinkCriteria = "[Part_ID]=" & Me![List2]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
Please let me know the correct code for the second listbox (List4)