Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot update. Database or object is read-only. (ERROR)

Status
Not open for further replies.

Dylan

MIS
Aug 27, 1998
109
US
I have an access xp database that is displaying this Error mssg all of a sudden when my code trys to to a ExportFixed command.

DoCmd.TransferText acExportFixed, "bai_format", "tbl_bai_format", "c:file.txt", False

Any help would be greatly appreciated ...


Tom

Tom Moran
Lansing, Michigan
 
I got that message today when trying to do an export of a table. It only happened when I tried to export to the same folder my Database was in. Is this the case for your code as well?
HTH
Peter
 
It was happening if the file already existed on disk.

Tom Moran
Lansing, Michigan
 
Have you tried to delete the file if it exists. Try using the FileSystemObject to check if the file exists then delete it.
Peter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top