Hello i got trouble to add data
i got error saying:
OleDbException was unhandled
here's the code:
Private Sub cmdAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdAdd.Click
Dim com As New OleDbCommand
com.Connection = con
com.CommandText = "insert into Watches values(" & txtWatchId.Text & ",'" & txtWatchBrand.Text & "','" & _
txtWatchModel.Text & "','" & txtManufacturer.Text & "'," & txtCountryOfOrigin.Text & "','" & _
cmbType.Text & "','" & txtDescription.Text & "'," & txtPrice.Text & "'," & txtPriceInclVat.Text & ")"
com.ExecuteNonQuery()
MsgBox("Record Inserted")
Call fill_combo()
Call populate()
Call clear()
End Sub
any help please