Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

ACC2000: Schema.ini Error with TransferText Action During Export


View products that this article applies to.

Symptoms

When you use the TransferText macro action to export an HTML or text file using a specification table, you may receive the following error message:
The data being exported does not match the format described in the Schema.ini file.

↑ Back to the top


Cause

The HTML or text file that you are trying to export contains field names that do not match the field names in the specification table. This will happen if you do not click to select the First Row Contains Column Headings check box when you create the specification table.

↑ Back to the top


Resolution

Click to select the First Row Contains Column Headings check box in the <'table name'> Import Specification dialog box.

-or-

Change the names for the fields in the <'table name'> Import Specification dialog box when you create the specification table so that the field names match the field names in the table that you are exporting.

↑ Back to the top


More information

Steps to Reproduce Behavior

  1. Open the sample database Northwind.mdb in Microsoft Access. In the Database window, select the Suppliers table.
  2. On the File menu, click Export.
  3. In the Export Table 'Suppliers' To dialog box, in the Save as type box, select HTML Documents, click the Save formatted check box, and then click Save. Click OK in the HTML Output Options dialog box.
  4. Create a specification table for the Suppliers HTML file. To do so, follow these steps:
    1. On the File menu, point to Get External Data, and then click Import.
    2. In the Files of type box, select HTML Documents.
    3. Locate and select the Suppliers HTML file, and then click Import.
    4. In the Import HTML Wizard dialog box, click Advanced, and then click Save As in the Suppliers Import Specification dialog box.
    5. Click OK in the Save Import/Export Specification dialog box.
    6. Click Cancel in the Suppliers Import Specification dialog box. Click Cancel in the Import HTML Wizard dialog box.
  5. Create a new macro that uses the TransferText action with the following arguments:
          Macro Name   Action
          -------------------------
          Macro1       TransferText
    
          Macro1 Actions
          -----------------------------------------------------
          TransferText
             Transfer Type: Export HTML
             Specification name: Suppliers Import Specification
             Table Name: Suppliers.
             File Name: C:\My Documents\Suppliers.html
             Has Field Names: Yes
    					

  6. Save and run the macro. Note that you receive the error message mentioned in the "Symptoms" section.

↑ Back to the top


Article Info
Article ID : 199068
Revision : 3
Created on : 1/1/0001
Published on : 1/1/0001
Exists online : False
Views : 242