The information in this article applies to:
SYMPTOMSWhen you use a Microsoft Excel worksheet as a data source in Microsoft Query, and you attempt to create a join between two fields of seemingly similar data types, Microsoft Query may generate the following warning message: If you choose Yes to this option, you receive either of the following errors: Microsoft Query version 1.0
Microsoft Query version 2.0
Microsoft Query version 8.0This behavior occurs regardless of the number of "Rows To Scan" you specified when you set up the data source. CAUSE
This problem occurs because the two apparently similar fields may be
evaluated as being of different data types. This difference in type causes
an error and prevents you from completing the join.
For the Microsoft Excel driver, you may enter a number from 1 to 16 for the rows to scan; however, the value will always default to 1. (A number outside the limit will return an error.)This information is incorrect. The Rows To Scan option will always use the first eight rows of data to determine the data type of a given field regardless of the number of rows specified. In the case where the first 8 rows contain four numeric and four text values, the data type for the column will default to Number. WORKAROUNDTo ensure that Microsoft Query accesses your Microsoft Excel data properly, make sure that all values in a particular column are of the same data type. Do not mix text and numeric data in a single column. If you need to have mixed data in a field, format the column in Microsoft Excel as Text (on the Format menu, click Cells, and select the Text option on the Numbers tab) before you enter data. STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. REFERENCESFor more information about Rows To Scan, click Help in the Add Data Source dialog box. In ODBC Help, click the Index tab, and type the following text: rows to scan Additional query words: ODBC 2.00 5.00c 8.00 97
Keywords : kbualink97 xlquery |
Last Reviewed: November 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |