Ver Mensaje Individual
  #7  
Antiguo 08-06-2007
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
Pero, ¿seguimos cepillando las consultas?

Pon el código SQL, en la propiedad SQL del Query, y en tu botón te dejas de cosas raras y pones:

Código Delphi [-]
{ Asignas valores a los parámetros }
QueryRefresh.ParamByName('agregar').AsInteger := StrToInt(txtAgregar.Text);
QueryRefresh.ParamByName('maximo').AsInteger := StrToInt(DBEDIT.Text);
QueryRefresh.ParamByName('codigo').AsInteger := StrToInttxtCodigo.Text);

{ Ejecutas la consulta }
QueryRefresh.ExecSQL;

// Saludos
Responder Con Cita