Thanks but the problem is the Write # statement which logically looks at an
embedded quote in a field as the end of the field. I'm looking for an
alternative that will allow me to embed the quote. I think a tab delimited
file may be the answer but I don't know for sure and I don't know how to
create one on using Access.
<pi********@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
you could loop through all the records and then loop through the fields
in the recordset... something like:
do until rst.EOF
for intCounter=0 to rst.fields.count-1
if intCounter=0 then
strLine= rst.Fields(intCounter)
else
strLine = strLine & vbtab & rst.fields(intCounter)
end if
next intCounter
'---write your string to your text file
write #1 strLine
rst.MoveNext
loop
you could grab the code Albert Kallal wrote and do the same thing. He
wrote code that basically does this... dig around here for his
website...