knight1001
Technical User
Hello i've been trying to Update access db inputs but i just can't get it to update.
Theres no errors it just won't work
Theres no errors it just won't work
Code:
private void Update_Click(object sender, EventArgs e)
{
if (Page.IsValid)
{
commandpartthree = new OleDbCommand("UPDATE Cars SET [Car No] = @CarNo, [Team Name] = @TeamName, [Factory Date] = @FactoryDate, [Engine Make] = @EngineMake, [Main Sponsor] = @MainSponsor WHERE = [CarNo], @CarNumDrop");
commandpartthree.Connection = connectionpartthree;
commandpartthree.Parameters.Add("@CarNo",OleDbType.VarChar);
commandpartthree.Parameters["@CarNo"].Value = TextCarNo.Text;
commandpartthree.Parameters.Add("@TeamName", OleDbType.VarChar);
commandpartthree.Parameters["@TeamName"].Value = TextTeamName.Text;
commandpartthree.Parameters.Add("@FactoryDate", OleDbType.VarChar)
commandpartthree.Parameters["@FactoryDate"].Value = TextFactory.Text;
commandpartthree.Parameters.Add("@EngineMake", OleDbType.VarChar);
commandpartthree.Parameters["@EngineMake"].Value = TextEngine.Text;
commandpartthree.Parameters.Add("@MainSponsor", OleDbType.VarChar);
commandpartthree.Parameters["@MainSponsor"].Value = TextMain.Text;
}
}