Ver Mensaje Individual
  #3  
Antiguo 07-11-2007
samantha jones samantha jones is offline
Miembro
 
Registrado: ago 2004
Posts: 46
Reputación: 0
samantha jones Va por buen camino
O bien puedes usar parametros:

Código Delphi [-]
adoquery1.Close;
adoquery1.SQL.Clear;
adoquery1.SQL.Text := 'select count(*) cantidad' 
+ ' from ciudad where'
+ ' coddep=:coddep and codciu=:codciu';

adoquery1.Parameters.ParamByName('coddep').Value:=combo01.Text;
adoquery1.Parameters[1].Value:= combo02.Text;
adoquery1.Open;
Responder Con Cita