I am having a controll in my project that is listbox with checkbox style. I like to get all the selected item in a access database or in datagrid. kindly help me to get the vb6 source code.
Multiple selection in listbox
Collapse
X
-
Tags: None
-
Originally posted by abhijeetroyI am having a controll in my project that is listbox with checkbox style. I like to get all the selected item in a access database or in datagrid. kindly help me to get the vb6 source code. -
Originally posted by abhijeetroyI am having a controll in my project that is listbox with checkbox style. I like to get all the selected item in a access database or in datagrid. kindly help me to get the vb6 source code.
If it listView, try like this way (this is not a exact code)
[CODE=vb]
For i = 1 to lvName.Listitem s.Count
If lvName.Listitem (i).checked = True Then
lvName.Listitem (i).Text
lvName.Listitem (i).Subitem(1)
lvName.Listitem (i).Subitem(2)
lvName.Listitem (i).Subitem(3)
............... ...........
............... ...........
............... ...........
<Place your Insert Query here.>
End If
Next i[/CODE]Comment
Comment