Mfwamba Tshimanga

Mfwamba Tshimanga

  • NA
  • 155
  • 46.4k

Doesnt update... why?

Sep 15 2014 1:44 PM
Hi!

I need to update... Its doesnt update datas.

This is my code:

 private void btnEditFunc_Click(object sender, EventArgs e)
        {
            Conn.Open();
            oleDbCmd.Connection = Conn;
            oleDbCmd.CommandText = "UPDATE worker SET name= '" + txtName.Text + "' WHERE code = " + txtCode.Text + ")'";
            
            oleDbCmd.ExecuteNonQuery();        
               
            Conn.Close();
        }

Answers (1)