You receive "Can't update. Database or object is read-only" error message when you import or export files in Access 2000

Article translations Article translations
Article ID: 245407 - View products that this article applies to.
This article was previously published under Q245407
Moderate: Requires basic macro, coding, and interoperability skills.

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).

Expand all | Collapse all

On This Page

SYMPTOMS

After you install the latest service pack for Microsoft Jet 4.0, when you import text files or try to export an Access object to text format, you may receive the following error message:
Can't update. Database or object is read-only.
When importing, this is followed by:
An error occurred trying to import file filename. The file was not imported.

CAUSE

The file that you are importing or that you are trying to export does not have a recognized file name extension.

RESOLUTION

Rename the file name extension so that it matches one of extensions listed in the "More Information" section later in this article.

-or-

Modify the following registry key to include the extension of the file that you are importing.

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
HKEY_LOCAL_MACHINE\Software\Microsoft\Jet\4.0\Engines\Text\DisabledExtensions
For additional information about setting this registry key see the More Information section of the following article, click the article number below to view the article in the Microsoft Knowledge Base:
239471 Jet 4.0 Text IISAM Allows Users to Append Lines to System Files

MORE INFORMATION

For security reasons, the latest service pack for Jet (by default) allows only text files with the following extensions to be imported:
  • txt
  • csv
  • tab
  • asc
  • htm
  • html
If you try to import a text file or to export an Access object to text format with any other extension, you receive the error message that is mentioned in the "Symptoms" section.

Steps to Reproduce the Behavior

  1. Install Microsoft Jet 4.0 Service Pack 3. For additional information about installing this service pack, click the following article number to view the article in the Microsoft Knowledge Base:
    239114 How to obtain the latest service pack for the Microsoft Jet 4.0 Database Engine
  2. Click Start, point to Programs, point to Accessories, and then click Notepad.
  3. Type the following text:
       1,John,Doe
       2,John,Smith
       3,John,Jones
    					
  4. Save the file as C:\Test.dat, and then close it.
  5. Start Microsoft Access 2000.
  6. Create a new database.
  7. On the File menu, point to Get External Data, and then click Import.
  8. In the Files of type list, click Text Files (*.txt;*.csv;*.tab;*.asc).
  9. In the File name box, type C:\Test.dat, and then press ENTER.
  10. Click Finish. Note that you receive the following error message:
    Can't update. Database or object is read-only.

Properties

Article ID: 245407 - Last Review: July 28, 2004 - Revision: 4.1
APPLIES TO
  • Microsoft Access 2000 Standard Edition
Keywords: 
kbexport kbimport kberrmsg kbprb KB245407

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com