it can only save 1 record, but i want to save 2 or more from listview to database
database table: table1 , fields [receiptnum,nod,qty,price,total [all in text]]
For Each x As ListViewItem In lvorder.Items
sql = "insert into table1 (receiptnum,nod,qty,price,total) values ('" _
& lblos.Text & "','" _
& x.SubItems(0).Text & "','" _
& x.SubItems(1).Text & "','" _
& x.SubItems(2).Text & "','" _
& lbltotal.Text & "')"
Next
Dim cmd = New OleDb.OleDbCommand(sql, con)
cmd.ExecuteNonQuery()
MsgBox("save")
Me.Refresh()