The information in this article applies to:
SUMMARYThe Excel ISAM driver is limited in the sense that it does not dynamically convert datatypes. MORE INFORMATION
If there is a column in your Excel spreadsheet that contains both text and
numbers, the ISAM will not be able to correctly interpret which datatype it
should be. Please make sure that all the cells in a column are formatted to
be the same datatype. For example, you might have following data in four
columns in an Excel sheet:
If you try to read the data through ISAM driver against the whole sheet, you will get the null values for first row. If you want to avoid this, create named ranges; one containing only the header information and another one containing the data information, such as:
Now you can connect to Excel and request information only from the particular named range. However, in one range, one particular column can contain only one type of data. Creating a RangeHighlight the data. From the menu, select Insert->Name->Define->rangename. Note that the "refers to" box below will refer to your highlighted range; this should grow and shrink as data is inserted and deleted. To retrieve your data, use the range name you just created for the table name in your select statement.Excel Steps
Visual Basic Steps
REFERENCESPlease refer to the documentation for how to connect to Excel through DAO. Another good reference will be the upcoming ADO->Excel reference. Additional query words: kbDAO350 kbIISAM kbDatabase kbDSupport kbdse kbVBp500 kbVBp600
Keywords : kbGrpVBDB |
Last Reviewed: January 11, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |