Your order of parameter declaration is incorrect. Otherwise code looks good. According to the query,
inclass
parameter should come first and then
insno
.
command = new OleDbCommand("UPDATE Instructor SET inclass = ? WHERE insno=?", con);
command.Parameters.Add("@inclass", OleDbType.Boolean).Value = false;
command.Parameters.Add("@insno", OleDbType.VarChar).Value = txtid.Text;