This article shows you how to use a previously defined import/export
specification from one database in another database.
NOTE: The method described in this article involves the manipulation of system tables. Although manipulating system tables is neither supported nor encouraged, the only method for using a previously defined import/export specification in another database is to transfer the relevant system tables from one database to another.
Import/export specifications are stored in the system tables MSysIMEXSpecs and MSysIMEXColumns. These two tables can be imported or exported, but the target database must not contain an existing import/export specification. If the target database already contains an import/export specification, additional tables that Microsoft Access does not recognize will be created.
The best approach is to create a new database for the import/export
specification and then import those tables from the other database.
To create an Import/Export Specification in the sample database Northwind.mdb, follow these steps:
CAUTION: If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these steps on a copy of the database.
Start Microsoft Access and open the sample database Northwind.mdb.
On the Tools menu, click Options, on the View tab, click to select the System Objects check box if it is not already selected, and then click OK.
In the Database window, click Tables and notice the appearance of the tables MSysIMEXSpecs and MSysIMEXColumns, along with other system tables identified by the characters "MSys" in their names.
Click the MSysIMEXSpecs table, click Open to view its records (there may be none), and then close the table.
Click the Customers table, and then on the File menu, click Export.
In the Export Table 'Customers' As dialog box, accept the file name Customers; in the Save As Type list, click Text Files (*.txt, *.csv, *.tab, *.asc), and then click Save.
In the Export Text Wizard dialog box, click Advanced.
In the Customers Export Specification dialog box, click {tab} in the Field Delimiter list, and then click Save As.
In the Save Import/Export Specification dialog box, click OK, and then click OK in the Customers Export Specification dialog box.
In the Export Text Wizard dialog box, click Next and notice that Tab is the selected delimiter; again click Next.
Notice the path and file name of the exported data, click Finish, and then click OK in the completion message box.
In the database window, open the MSysIMEXSpecs table and notice the new record.
On the Tools menu, click Options, and then on the View tab, click to clear System Objects.
For more information about import/export specifications, click Microsoft Access Help on the
Help menu, type export a datasheet in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.