ACC: How to Use Schema.ini for Accessing Text DataLast reviewed: August 28, 1997Article ID: Q149090 |
The information in this article applies to:
SUMMARYAdvanced: Requires expert coding, interoperability, and multiuser skills. This article demonstrates how to programmatically open or link to a text file using a Schema.ini file and Data Access Objects (DAO). A Schema.ini file contains the specifics on how data is formatted in a particular text file and is used by the Text ISAM driver to read and manipulate data. This article assumes that you are familiar with Visual Basic for Applications and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information about Visual Basic for Applications, please refer to your version of the "Building Applications with Microsoft Access" manual.
MORE INFORMATIONFollow these steps to create a Schema.ini file and a fixed-width text file that you can use in the Example sections later in the article:
Example 1To create a recordset using data from a text file (Contacts.txt), follow these steps:
Example 2To create a table linked to a text file (Contacts.txt), follow these steps:
REFERENCESFor more information about accessing data in a text file, search on "accessing data in text documents," using the Microsoft Access Help Index. Keywords : kb3rdparty PgmHowTo Version : 7.0 97 Platform : WINDOWS Hardware : x86 Issue type : kbhowto |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |