ms access [tblorder - code[text], items[text], total[text]]
code = lblcode [label]
items= x.SubItems(1) [in listview]
total = lbltotal [label]
as of now i can only save 1 item in the field 'items' , but i want to save 2 or more items,how can i do that?
For Each x As ListViewItem In lvorder.Items
sql = "insert into tblorder (code,items,total) values ('" _
& lblcode.Text & "','" _
& x.subitems(1) & "','" _
& lbltotal.Text & "')"
Dim cmd = New OleDb.OleDbCommand(sql, con)
cmd.ExecuteNonQuery()
cmd.Dispose()
Next
MsgBox("save")