OleDB update command not changing data
I'm using Microsoft Access file as database. I have no problem with SELECT and INSERT queries but when I try to UPDATE , record in database does not change. Below is the code I use to run update. There are no exceptions or errors in debug log. cnn = new OleDbConnection(connetionString); OleDbCommand command = new OleDbCommand("UPDATE [Wpisy] SET [wpis]=@wpis, [id_kat]=@id_kat, [tytul]=@tytul WHERE [ID]=@id_wpis" , cnn); command.Parameters.Add(new OleDbParameter("@wpis", tresc_wpisu.Text)); command.Parameters.Add(new OleDbParameter("@id_kat", lista_kategorii.SelectedValue)); command.Parameters