Microsoft KB Archive/145771

= ACC95: Error Exporting Microsoft Access 95 Table to Version 2.0 =

Article ID: 145771

Article Last Modified on 7/5/2002

-

APPLIES TO


 * Microsoft Access 95 Standard Edition

-



This article was previously published under Q145771



Moderate: Requires basic macro, coding, and interoperability skills.



SYMPTOMS
If you try to export a Microsoft Access version 7.0 table to a Microsoft Access version 2.0 database, you may receive the following error message:

Invalid field data type.



CAUSE
The Microsoft Access 7.0 table contains a field with a ReplicaID field size. The ReplicaID field size is a Globally Unique Identifier (GUID), 16 bytes long. Microsoft Access version 2.0 does not support the ReplicaID field size. Although Microsoft Access version 7.0 will convert a field with a ReplicaID field size to the Text data type when it exports the table to a file format like text-delimited or dBASE, it will not convert the field's data type if the export is to a version 2.0 database.



RESOLUTION
If you want to export a version 7.0 table that contains a field with a ReplicaID field size to a version 2.0 database, do one of the following:

Create a select query containing all fields except the field with a Replica ID field size, and then export the query.

-or-

Export the table to another file format, such as text-delimited or dBASE, and then import the file into the version 2.0 database.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
 Start Microsoft Access 7.0.  Create the following new table and called it Table1:

     Table: Table1 ---     Field Name: ID         Data Type : AutoNumber or Number Field Size: Replication ID     Field Name: FName Data Type : Text  Save and close the Table1 table without defining a primary key. On the File menu, click Save As/Export.</li> In the Save As dialog box, click "To an external File or Database," and then click OK.</li> In the Save Table 'Table1' dialog box, click Save Microsoft Access (*.mdb, *.mdw, *.mda) in the Save As Type box, locate a version 2.0 database, and then click Export.</li> In the Export dialog box, click OK. Note that you receive the following error message:

Invalid field data type.

</li></ol>

NOTE: Step 2 in the example is just one method of creating a field with a ReplicaID field size. If a table is in a replicated database and the table is replicable, it automatically contains a field named s_Guid. This field has a ReplicaID field size, and cannot be deleted.

<div class="references_section">