OleDbCommand cmd = new OleDbCommand("update tb_teachers set Tpassword='" + textBox1.Text + "'where 账号= '" + B + "'", db1.OleDbConn);
这一句的where前面,少了一个空格。。。