Ver Mensaje Individual
  #2  
Antiguo 05-01-2009
Avatar de Nati1
Nati1 Nati1 is offline
Miembro
 
Registrado: nov 2007
Posts: 24
Reputación: 0
Nati1 Va por buen camino
O
Código Delphi [-]
With Modulo_Busqueda.Consulta_Busqueda do    
begin       
Close;       
 SQL.Clear;        
SQL.Text:='SELECT * FROM Tbl_Trabajador WHERE No_Chapa :valor';
Parameters[0].Value:= Edit1.text;        
Open;     
end;

O
Código Delphi [-]
With Modulo_Busqueda.Consulta_Busqueda do     
begin       
Close;        
SQL.Clear;        
SQL.Text:='SELECT * FROM Tbl_Trabajador WHERE No_Chapa :valor'; 
Parameters.ParamByName('valor').Value:= Edit1.Text;       
Open;     
end;

Última edición por Nati1 fecha: 05-01-2009 a las 21:18:05.
Responder Con Cita