TransferText in xls causes error 3027

B

Bob Tindall

If I do a DoCmd.TransferText to export from a query and
set the export file name to xxxxx.xls I get "Error 3027,
Can't update. Database or object is read only.". The full
line of code is:

DoCmd.TransferText
acExportDelim, "OpenAccountsExportInvoices", "qryOpenAccoun
tsExportTable", sPathname, False

sPathname is a string variable containing a full pathname
including a filename ending in ".xls". If I change this
to ".csv" it exports OK.

I am running WinXP Pro. The error occurs with any version
of Access (Access97, 2000 or XP). It does not occur on
Win98 or Win2K.

Anyone seen this before? I can't find anything in the
knowledge base about it.

Thanks, Bob
 
J

Joe Fallon

Check out the following KB articles for an explanation, and how to get
around it:

ACC97: "Can't Update. Database or Object Is Read-only" Error Message When
You Import Files
http://support.microsoft.com/default.aspx?scid=kb;EN-GB;q247861

ACC2000: "Can't Update. Database or Object Is Read-only" Error Message When
You Import Files
http://support.microsoft.com/default.aspx?scid=kb;EN-GB;q245407

ACC2000: How to Import a Text File That Has an Extension That Access Does
Not Recognize (Q306144)
http://support.microsoft.com/default.aspx?scid=kb;EN-GB;q306144
 
B

Bob

The problem I have occurs when exporting data.
Unfortuntely these articles are all to do with data import.
Do you think you could try doing a similar export to mine
(using WinXP pro) and see if you get the same problem,
please? - Bob
 
J

John Nurick

The ! at the start of the registry value means that these are the
extensions that are _not_ disabled. If you want to create a text file
with an XLS extension - which I emphatically don't recommend - you'll
need to include xls in the list.
 
Joined
May 2, 2023
Messages
1
Reaction score
0
The ! at the start of the registry value means that these are the
extensions that are not disabled. If you want to create a text file
with an XLS extension - which I emphatically don't recommend - you'll
need to include xls in the list.

The export has to be a file type that MS Access supports. Like .CSV
 

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