I was really impressed with this delphi two liner using the IFThen function from Math.pas. However, it evaluates the DB.ReturnFieldI first, which is unfortunate because I n
Can't you change your query to have only one result so avoid to do the 'First' command ? Just like :
SELECT TOP 1 awesomedata1 from awesometable
In Access...