OleDbConnection cn = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + Application.StartupPath + "/Database/DB.accdb;Jet OLEDB:Database Password=123"); OleDbCommand cmd = new OleDbCommand("update tblUP Set Password=@UP,UserType=@UT,FirstName=@FN,LastName=@LN where UserName=@UN",cn); cmd.Parameters.AddWithValue("@UP", txtUP.Text); cmd.Parameters.AddWithValue("@UT", chkUT.Checked); cmd.Parameters.AddWithValue("@FN", txtFN.Text); cmd.Parameters.AddWithValue("@LN", txtLN.Text); cmd.Parameters.AddWithValue("@UN", txtUN.Text); cn.Open(); cmd.ExecuteNonQuery(); cn.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)