ACC: Errors Refreshing Linked Text File via Linked Table Mgr
ID: Q190186
|
The information in this article applies to:
-
Microsoft Access versions 7.0, 97
SYMPTOMS
Moderate: Requires basic macro, coding, and interoperability skills.
When you try to refresh a link to an external text file by using the Linked
Table Manager from within Microsoft Access, you may receive one of the
following error messages:
- Application-defined or object-defined error.
-or-
- The text file specification '<Filename> Link Specification' does not
exist. You can't import, export, or attach using the specification.
CAUSE
The Linked Table Manager requires an information file called Schema.ini to
determine the characteristics of the text file, such as column names,
field lengths, and data types. Text files linked through the Link Text
Wizard do not use the Schema.ini to determine the characteristics of the
file.
RESOLUTION
To resolve this problem, you must first create a Schema.ini file and link
the external text file by using the TransferText method in a macro or in a
Visual Basic for Applications function.
NOTE: The Schema.ini file must reside in the same folder as the text
file(s) it describes.
For more information about creating a Schema.ini, please see the following
articles in the Microsoft Knowledge Base:
Q149090 ACC: How to Use Schema.ini for Accessing Text Data
Q155512 ACC: How to Create a Schema.ini File Programmatically
MORE INFORMATIONSteps to Reproduce Behavior
- Start Microsoft Access, and open the sample database Northwind.mdb.
- Click to select the Employees table.
- On the File menu, click Save As/Export.
- In the Save As dialog box, click "To an External File or Database," and
then click OK.
- In the "Save Table 'Employees' In" dialog box, select the folder to
which you want to export the file.
- From the Save As Type list, select Text Files. Type Emp.txt
in the File Name box. Click Export.
- When the Text Export Wizard starts, click Finish.
- On the File menu, point to Get External Data, and then click Link
Tables.
- From the Files Of Type list, select Text Files. Point to the folder
selected under step 5, and click to select Emp.txt. Click Link.
- When the Link Text Wizard starts, click Finish.
- Close and re-open Microsoft Access.
- Open the sample database Northwind.mdb.
- On the Tools menu, point to Add-Ins, and then click Linked Table
Manager. Select the Emp table check box, and then click OK.
Note that you receive one of the error messages mentioned in the "Symptoms"
section.
Keywords : IsmTxtd IsmTxtfx WzAtmgr
Version : WINDOWS:7.0,97
Platform : WINDOWS
Issue type : kbprb
|