Solved

Expport CSV From MS Access

Posted on 2014-01-09
1
317 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
ID: 39770001
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

943 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

19 Experts available now in Live!

Get 1:1 Help Now