jcardo
September 13th, 2001, 08:11 PM
In my aplication I'm using Microsoft ActiveX Data Object Libraray. I have populate with code a List Box (the user can select one or more than one item (MultiSelect 1- simple). Here the code that I use to populate the list box
Private Sub Form_load()
With mrsPartCode
Do Until .EOF
LstPartCode.AddItem !part_code & vbTab & !part_desc
.MoveNext
Loop
.MoveFirst
End With
End Sub
I Want to find a way to filter other recordset based on the part_code item from the list box. I think the SQL should be called after the array is filled after completing the list. Obviously the other recordset have the same field part_code that is showing in the list box.
That means the user can select two, five, six, …. , or more items from the list.
How can I filter a Recordset with the multiple selection in the list box?
Thank you.
Private Sub Form_load()
With mrsPartCode
Do Until .EOF
LstPartCode.AddItem !part_code & vbTab & !part_desc
.MoveNext
Loop
.MoveFirst
End With
End Sub
I Want to find a way to filter other recordset based on the part_code item from the list box. I think the SQL should be called after the array is filled after completing the list. Obviously the other recordset have the same field part_code that is showing in the list box.
That means the user can select two, five, six, …. , or more items from the list.
How can I filter a Recordset with the multiple selection in the list box?
Thank you.