Exporting table to text file without .txt extention

G

Guest

I need to export a table to a text file but I do not want the file name to have a file extention. When I try to do the export I get the following error message: “Cannot update. Database or object is read-only.†If I add the .txt file extention the export works fine. Can anyone help me with this problem?
 
D

Douglas J. Steele

It's a "security feature" introduced in Access 97 by one of the service
packs and perpetuated ever since.

See
http://support.microsoft.com/?id=245407
http://support.microsoft.com/?id=304206


--
Doug Steele, Microsoft Access MVP

(No private e-mails, please)


Joel said:
I need to export a table to a text file but I do not want the file name to
have a file extention. When I try to do the export I get the following
error message: "Cannot update. Database or object is read-only." If I add
the .txt file extention the export works fine. Can anyone help me with this
problem?
 
T

Tom Wickerath

Hi Joel,

It appears as if you must use a file extension that is in a "recognized" list. This is for
security reasons. You can edit the registry to add additional extensions to the recognized list,
but I doubt that you'll have any success exporting without an extension.

ACC2000: "Can't Update. Database or Object Is Read-only" Error Message When You Import or Export
Files
http://support.microsoft.com/?id=245407

You could always try renaming the file via code, after the export was completed.

Tom
_____________________________________________


I need to export a table to a text file but I do not want the file name to have a file extention.
When I try to do the export I get the following error message: “Cannot update. Database or
object is read-only.†If I add the .txt file extention the export works fine. Can anyone help
me with this problem?
 

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

Similar Threads

Excel extention not set 3
Export to TXT file 4
Import Fixed Width (.dat) file 7
Export to text file, and VBA 1
specific extention 1
file extention .xsls 3
Export txt file 3
Add Date to export file Name 1

Top