Posted on 2001-08-01
I've got an application I'm working on and I need to do the following...
function GetCustomerName(sAccNum: String): String;
with TQuery.Create(nil) do begin
SQL.Add('Select CustomerName from CustomerDetails where AccountNumber='''+sAccNum+'''');
so that I can simply do something like....
The problem I have is the results line. Can someone tell me how to reference the results that I glean in this manner? (I've tried referencing the TFields property, Fields, but there appears to be nothing in it.)