dim rs as new adodb.recordset
dim registro as string
set rs = new adodb.recordset
rs.open "select xxxx from...." , conn
open "C:\pasta\arquivo.txt" for output as #1
do while not rs.eof
registro = rs.fields("Nome").value
registro = registro & space(15 - len(rs.fields("Nome").value)))
registro = registro & rs.fields("Endereco").value
print #1, registro
rs.movenext
loop
close #1
rs.close
algo parecido com isso