technocraze
12-14-2006, 08:07 AM
MAy I knw hw to iterate through the listbox and select the values. I am using something like this. Iam nt too sure as hw to use RecordSet and its properties. I am using MS Acess in vb environment
Dim item As Variant
Dim sqlStat as String
Dim studentId As string
Assign studenId to ListBox
foreach item in Listbox1.Selected
sqlStat = Update [TableName] set [field1, field2, field3] values [TextBoxes control] where studentId = Listbox1 control (selected value of listbox)
Dim item As Variant
Dim sqlStat as String
Dim studentId As string
Assign studenId to ListBox
foreach item in Listbox1.Selected
sqlStat = Update [TableName] set [field1, field2, field3] values [TextBoxes control] where studentId = Listbox1 control (selected value of listbox)