Hi all,
I'm in desperate need of a (simple I guess) code to allow me to send records from my listbox to a new form. Scenario goes as follows:
I use cascading combo boxes to narrow my available choices and finally end up with a listbox presenting the records filtered through cascading process. Now, I want to double-click on a record and load a new form with all this record's fields.
This is the code used to populate the listbox:
Could you please help me with the code needed to open a form with the double-clicked record's fields, as described above?
Thanks in advance,
-george.
I'm in desperate need of a (simple I guess) code to allow me to send records from my listbox to a new form. Scenario goes as follows:
I use cascading combo boxes to narrow my available choices and finally end up with a listbox presenting the records filtered through cascading process. Now, I want to double-click on a record and load a new form with all this record's fields.
This is the code used to populate the listbox:
Code:
Private Sub FilterTypeList()
Dim strRS As String
' Filter the list box appropriately based on the combo box selection(s)
strRS = "SELECT qryTaxonomy.Type, qryTaxonomy.Article FROM qryTaxonomy"
If Not IsNull(Me.cboSubCatID) Then
strRS = strRS & " WHERE SubCatID = " & Me.cboSubCatID
ElseIf Not IsNull(Me.cboCatID) Then
strRS = strRS & " WHERE CatID = " & Me.cboCatID
End If
strRS = strRS & " ORDER BY qryTaxonomy.Article;"
Me.lstTypeID.RowSource = strRS
Me.lstTypeID.Requery
End Sub
Could you please help me with the code needed to open a form with the double-clicked record's fields, as described above?
Thanks in advance,
-george.