Hola yo he hecho consultas y lo hago de la siguiente manera, y siempre me funciona bíen.
AdoQuery1.Active:=false;
AdoQuery1.SQL.Clear;
AdoQuery1.SQL.Add('SELECT Nodo, Ubicación, IP, from inventario where Nodo = :Valor');
AdoQuery1.Parameters.ParamByName('Valor').asstring := #39+Edit1.Text+#39;
AdoQuery1.Open;
Espero que te funcione bíen.
Jordy.
|