Converting Recordset to CSV

M

Michael

After reviewing the internet I did not find strong and simple example that
transfer recordset to simple CSV file.

Thanks for any help
 
B

Bob Barrows [MVP]

Michael said:
After reviewing the internet I did not find strong and simple example
that transfer recordset to simple CSV file.

Thanks for any help
There is no single-step method of doing this. Basically, you create a string
containing the csv data and then use FileSystemObject to write it to a file.

The GetString method is very useful for generating the string. Its default
arguments will result in a csv string:

dim rs, s
s=rs.GetString

ASPFAQ has several examples of using the FileSystemObject.
http://www.aspfaq.com/show.asp?id=2039
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top