Export From Access 2003 to CVS file format

H

Heather

I am trying to get this export to work. Every time I do the export I receive
an error that the database or object is read only.

Here is my code

outputfilename = strFolderName & "\HSA_Paid_Denied_Extract_" &
Trim(Format(Date, "yyyymmdd")) & ".cvs"

DoCmd.TransferText acExportDelim, "HSA Extract Export Specification", "q-070
HSA Extract", outputfilename, True
 
P

pietlinden

I am trying to get this export to work.  Every time I do the export I receive
an error that the database or object is read only.

Here is my code

outputfilename = strFolderName & "\HSA_Paid_Denied_Extract_" &
Trim(Format(Date, "yyyymmdd")) & ".cvs"

DoCmd.TransferText acExportDelim, "HSA Extract Export Specification", "q-070
HSA Extract", outputfilename, True

Is the table already open somewhere else? If so you will get that
error.
 
H

Heather

No I verified that prior to posting here. The table is actually just a query
that I was exporting in an excel format. In excel it works just fine. In
..cvs or .txt I get the error.
 
H

Heather

Never mind it was a typo. That is what I get for staring at this for to
long. Thanks everybody
 

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