Ver Mensaje Individual
  #2  
Antiguo 28-03-2009
Avatar de marcoszorrilla
marcoszorrilla marcoszorrilla is offline
Capo
 
Registrado: may 2003
Ubicación: Cantabria - España
Posts: 11.221
Reputación: 10
marcoszorrilla Va por buen camino
Cita:
Empezado por Sole_l Ver Mensaje
Código Delphi [-]
 procedure TForm1.BitBTN1Click(Dender:TObject); begin   With DataModule2.AdoQuery1 do      begin         close;
         SQL.Clear;
         SQL.Add ('Select * from cliente where id_cliente= :dato');
         Parameters.ParamByName('dato').Value := StrToInt (DBEditDNI.Text);
         open; 
      end;
 end;

Muchas gracias
....
Código Delphi [-]
procedure TForm1.BitBTN1Click(Dender:TObject);
begin
  With DataModule2.AdoQuery1 do
     begin
        close;
        SQL.Clear;
        SQL.Add ('Select * from cliente where id_cliente= :dato');
        Parameters.ParamByName('dato').Value := StrToInt (DBEditDNI.Text);
        open;

if Adoquery1.RecordCount > 0 then
HacerCambios()
else
ShowMessage('No existe ese DNI.');

      end;
end;

Un Saludo.
__________________
Guía de Estilo de los Foros
Cita:
- Ça c'est la caisse. Le mouton que tu veux est dedans.
Responder Con Cita