Cita:
Empezado por Casimiro Notevi
Código Delphi [-]ADOQueryUpdate.Parameters.ParamByName('Estatus').Value := labelelquesea.caption;
ADOQueryUpdate.Parameters.ParamByName('Nombre').Value := labelotra.caption;
ADOQueryUpdate.Parameters.ParamByName('Apellido').Value:= labelyoquese.caption;
No estaría de más que le echaras un vistazo a este libro, te abrirá los ojos.
|
Ahora me esta dando otro error no logro identificarlo
Código Delphi
[-]
Close;
ADOQueryUpdate.SQL.Add( 'UPDATE Tiket');
ADOQueryUpdate.SQL.Add( 'SET');
ADOQueryUpdate.SQL.Add( 'Estatus =:Estatus,');
ADOQueryUpdate.SQL.Add( 'Usuario =:Usuario,');
ADOQueryUpdate.SQL.Add(' WHERE Item =:Item');
ADOQueryUpdate.Parameters.ParamByName('Item').Value := StrToInt(Label3.Caption);
ADOQueryUpdate.Parameters.ParamByName('Estatus').Value :='OLD';
ADOQueryUpdate.Parameters.ParamByName('Usuario').Value := Label4.caption;
ADOQueryUpdate.ExecSQL;
NOTA: Error '
Incorrect Syntax near the 'WHERE'