value:=Getsqlstringdata('select p.name '+
' from tempreport t '+
' left outer join rcpt_print r on r.finance_number=t.name10 '+
' left outer join pttype p on p.pttype=r.pttype '+
' where t.reportname="INCOME-LIST" '+
' and r.finance_number="'+dbpipeline['name10']+'" ');