Am getting problem with this update statement:
Here's the code:
Private Sub cmdUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdUpdate.Click
Try
Dim com As New OleDbCommand
com.Connection = con
com.CommandText = "Update Sales set CustomerId='" & txtCustomerId1.Text & "',WatchId='" & txtWatchId1.Text & _
"',Dateofsales='" & txtDate.Text & "',Quantity='" & txtQuantity.Text & "',Priceperunit='" & txtprice1.Text & "',TotalPrice='" & txtTotal.Text & _
"',TotalPriceInclVat='" & txttotalpriceinclvat1.Text & "'Where WatchID='" & txtSalesId.Text & "'"
com.ExecuteNonQuery()
MsgBox("Record Updated")
Call populate()
Catch
MsgBox("Error")
End Try
End Sub
error saying (no value given for one or more required parameters)
please help
thanks