Trying to update the quantity column of a table in a database with the row being selected from a combobox and the quantity being added selected by a textbox.
Try
connection.Open()
Dim command As OleDbCommand = New OleDbCommand("UPDATE Raw_Materials SET Quantity=+('" & Int.parse(TextBox1.Text) & "')
WHERE Part number=('" & ComboBox1.SelectedItem & ") ")
Dim sdr As OleDbDataReader
sdr = command.ExecuteReader()
sdr.Close()
connection.Close()
Catch ex As Exception
MsgBox(ex.Message)
End Try
getting an error message- Error 1 Overload resolution failed because no accessible 'Int' accepts this number of arguments.
other than that i'm not sure this is the right sql code anyway, new to sql and can't find any similiar tutorials , all the update tutorials are to do with adding a new row to a database.