Ver Mensaje Individual
  #7  
Antiguo 14-01-2004
__cadetill __cadetill is offline
Miembro
 
Registrado: may 2003
Posts: 3.387
Reputación: 25
__cadetill Va por buen camino
bueno, si asignas la sentencia SQL por código quedaría algo así

Código:
Query.SQL.Add('select *');
Query.SQL.Add(from tabla');
Query.SQL.Add('where campo = ' + Edit1.Text);  // <- si fuera numérico
Query.SQL.Add('where campo = ' + QuotedStr(Edit1.Text));  // <- si fuera alfa
Si asignas el SQL en el propio componente quedaría

Código:
select *
from tabla
where campo = :val
donde "val" será un parámetro que deberás informar por código

Espero te sirva
Responder Con Cita