Select the product you need help with
ACC2000: Importing or Linking a Text File Fails for a File That Does Not Have a Valid File Name ExtensionArticle ID: 304206 - View products that this article applies to. This article was previously published under Q304206 Advanced: Requires expert coding, interoperability, and multiuser skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp). IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base: 256986
(http://support.microsoft.com/kb/256986/EN-US/
)
Description of the Microsoft Windows Registry
On This PageSYMPTOMS
When you try to import or link a text file, you receive one of the following error messages:
Run-time error '3027': Cannot update. Database or object is read-only.
-or-
Cannot update. Database or object is read-only.
CAUSE
The file that you are importing or linking does not have a valid file name extension.
RESOLUTION
Use any one of the following three methods to work around this behavior.
Method 1 - Rename the File So That It Has a Valid File Name ExtensionThe following file name extensions are valid:
- txt NOTE: If your text files were originally HTM or HTML files, you can also rename them by using the .htm or .html file name extensions.
- csv - tab - asc Method 2 - Programmatically Import Files That Do Not Have a .txt ExtensionFor an example of how to programmatically import files that do not have a .txt extension, follow these steps:
With a small code change, you can also import .rtf files. For an example of how to do so, follow these steps:
Method 3 - Modify the System RegistryWARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
STATUSThis behavior is by design. MORE INFORMATION
Before the latest update of Microsoft Jet version 3.5 (Jet 3.5, Service Pack 3), Microsoft Access 97 did not generate any errors when you imported or linked files that did not have a valid extension. In fact, the file was not required to have any extension. This behavior was changed in Jet 3.5 Service Pack 3 and later, which affects Access 2000. Importing or linking text files that do not have a .txt, .csv, .tab, .asc, .tmp, .htm, or .html extension is no longer supported. Steps to Reproduce the Behavior
REFERENCES
For additional information, click the article numbers below to view the article in the Microsoft Knowledge Base:
239471
(http://support.microsoft.com/kb/239471/EN-US/
)
Jet 4.0 Text IISAM Allows User to Append Lines to System Files
239105
(http://support.microsoft.com/kb/239105/EN-US/
)
Jet 3.5 Text ISAM Allows User to Append Lines to System File
172733 For more information about the TransferText action or method, click Microsoft Access Help on the
Help menu, type transferText in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
(http://support.microsoft.com/kb/172733/EN-US/
)
ACC97: Updated Version of Microsoft Jet 3.5 Available
PropertiesArticle ID: 304206 - Last Review: June 28, 2004 - Revision: 2.0
|


Back to the top








