Good day to everyone here... Please I've been trying to write this code to update my data in a database I've created in Access through Vb.Net. I want it in a way that after I have saved a data and want to correct or make an update to it, then it will be possible...
The Data types for all the fields are Number
Just that aside MealID the other two fields, I've changed the field size of those fields in Access to Double where*MealID** is Long Integer
Please I'll be very grateful to any help I can get.. Thank you...
conn.Open()
cmd = conn.CreateCommand()
cmd.CommandType = CommandType.Text
cmd.CommandText = "update tblsales
set MealID = '" + txtID.Text + "'
where Waakye ='" + txtwaakye.Text +
"' and Salad = '" + txtsalad.Text + "'"
cmd.ExecuteNonQuery()
cmd.Close()