Archive Acess Report Data

J

Jay

I have a report of customer summary: Name, ID, and Reason, Time, and Commnet
fields. I want to achive these data in comma separated archived file. How can
I do that?

Thank you.
 
D

David Lloyd

Jay:

One alternative is to use the TransferText method on the underlying table or
query behind the report. For example:

DoCmd.TransferText acExportDelim, "MySpecificationName",
"MyTableOrQueryName", "H:\MyExportFileName.csv", True

You can create an export specification by choosing Export from the File menu
and then choosing "Text File" in the Save As Type combo box. This will
start the export wizard, and you can choose your delimiter (comma in this
case) and other parameters of the export. You can save the export
specification using the Save As option.

The fourth parameter of the TransferText method specifies whether or not to
include the field names in the file (True in my example).

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.


I have a report of customer summary: Name, ID, and Reason, Time, and Commnet
fields. I want to achive these data in comma separated archived file. How
can
I do that?

Thank you.
 

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

Top