I have an access database, and I do this query :
OleDatabase OleDB = new OleDatabase("MyDatabase");
string comando = "UPDATE ANAGRAFICA SET DENOMINAZIONE='" + aziendaValue["nome"] + "', INDIRIZZO='" + aziendaValue["indirizzo"] + "' WHERE PIVA='" + aziendaValue["piva"] + "'";
OleDB.oleComando(comando);
How can I check how many rows (0 to n) the query update?
I’m not 100% on this since I haven’t touched MS Access in a while, but I’m pretty sure that with ExecuteNonQuery you get the number of updated records, for example: