% crlf=chr(13)+chr(10) tsql=[SELECT accountid, name FROM (']+dbclocation+[accounts') ORDER BY name INTO CURSOR tx] &tsql account_opts=[] DO WHILE NOT EOF() account_opts=account_opts+[]+ALLTRIM(name)+[]+crlf skip enddo %>