Gracias por contestar.
Entiendo que esta última consulta tampoco me vale, ya que me dará el valor de CAMPO únicamente en el caso de que el 'Count' sea 1. Que no es lo que yo pretendía.
Para explicarme mejor, lo que quiero es tener que evitar hacer lo siguiente en varios pasos diferentes :
Código Delphi
[-]with DM0.IBDataSet1 do begin
SelectSQL.Clear;
SelectSQL.Add('Select Count(*) from TABLA where CONDICION = Condicion');
Prepare;
Open;
end;
if DM0.IBDataSet1.FieldByName('Count').Value > 1 then begin
LoQueSea;
Exit;
end;
if DM0.IBData1.FieldByName('Count').Value = 1 then begin
with DM0.IBDataSet1 do begin
SelectSQL.Clear;
SelectSQL.Add('Select VALOR from TABLA where CONDICION = Condicion');
Prepare;
Open;
end;
.. hacer lo que sea con el campo VALOR obtenido
end;