OleDbCommand cmdEditOffline = new OleDbCommand(); cmdEditOffline.CommandText = "UPDATE TbTransactionToOffline SET Amount = @Amount WHERE NoRef = @NoRef"; cmdEditOffline.Connection = conn; cmdEditOffline.Parameters.Add("@Amount", OleDbType.VarChar).Value = txtAmount.Text; cmdEditOffline.Parameters.Add("@NoRef", OleDbType.VarChar).Value = label1.Text; if (conn.State == ConnectionState.Closed) conn.Open(); cmdEditOffline.ExecuteNonQuery(); this.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)