Solved

Expport CSV From MS Access

Posted on 2014-01-09
1
316 Views
Last Modified: 2014-01-09
A client has asked that I export a file in CSV format.  Fro some reason I've always exported in spreadsheet format.

I'm looking at the TransferText command as the solution.  It looks easy enough but I keep getting an error 3027, Cannot update.  Database or object is read only.

My data is pulled together in a query called qrySSPropInfo

My command
DoCmd.TransferText acExportDelim, , "qrySSPropInfo", wkFileLocandName

wkFileLocAnd Name is set above to C:\ExportSS\PropInfo"

I treid replacing the query name with a table name and go the same result.

What is the issue?  If I get this to work will it export in CSV format?
0
Comment
Question by:mlcktmguy
1 Comment
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 250 total points
Comment Utility
you will need an export specification to do this,

DoCmd.TransferText acExportDelim, "exportSpecification", "qrySSPropInfo", wkFileLocandName


 you need to create this export spec
see this link

http://support.microsoft.com/kb/208991
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now