Utilizé el siguiente código en el evento OnClick del CheckBox (Con False como default)
Código Delphi
[-]with QueryServ do
begin
Close;
QueryServ.SQL.Text:= 'UPDATE Servidores SET ACTIVO = FALSE';
ExecSql;
QueryServ.SQL.Text:= 'UPDATE Servidores SET ACTIVO = TRUE WHERE ID = :PID';
QueryServ.Parameters.ParamByName('PID').Value:= serverbox.Checked; ExecSql;
y me entrega el siguiente error:
No se han especificado valores para algunos de los parámetros requeridos.
---------------------------
Aceptar
---------------------------