The information in this article applies to:
Moderate: Requires basic macro, coding, and interoperability skills. This article applies only to a Microsoft Access database (.mdb). SYMPTOMSWhen you link to a Microsoft Excel spreadsheet from a Microsoft Access database, and the fields in the spreadsheet contain both numbers and text, the fields that contain text appear as #Num! in the linked table in Microsoft Access. CAUSEAccess assigns the data type for each field based on data contained within the first eight rows it links. For example, if a field that contains mostly text values has a number in the first eight rows, Microsoft Access assigns the Number data type, and then cannot link the rest of the records. Any format that you apply to the fields in Microsoft Excel will be ignored by Microsoft Access when the spreadsheet is linked. NOTE: When you import rather than link an Excel spreadsheet, the Text data type has a priority within the import algorithm. For example, if the predominant data type based on a sampling of data is numeric, but there is at least one text value within that sample, Access will import the entire field as Text. RESOLUTION
Before you link to the Excel spreadsheet from Access, make sure that the
spreadsheet has the same type of data in each field (column) and the same
fields in every row.
MORE INFORMATIONCAUTION: Following the steps in this example will modify the sample
database Northwind.mdb. You may want to back up the Northwind.mdb file
and perform these steps on a copy of the database.
Steps to Reproduce Behavior
REFERENCESFor more information about linking data, click Microsoft Access Help on the
Help menu, type "Link data from a spreadsheet" in the Office Assistant or the Answer Wizard,
and then click Search to view the topic. Additional query words: datatype missmatch prb
Keywords : kbinterop kbdta |
Last Reviewed: May 27, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |