PRB: ODBC Converts Microsoft Excel Character Data to MemosLast reviewed: April 30, 1996Article ID: Q131580 |
The information in this article applies to:
SYMPTOMSWhen using the Microsoft Excel ODBC driver (from the Microsoft Desktop Database Drivers version 2.0) to perform a query against a Microsoft Excel spreadsheet, a Visual FoxPro table or cursor is produced. This table or cursor contains the requested data from the Microsoft Excel spreadsheet. If a cell contains text, that text will appear inside memo fields in the resulting Visual FoxPro table or cursor.
CAUSEWhen the data is passed to Visual FoxPro from ODBC, the resulting column is 255 characters wide. Visual FoxPro cannot place more than 254 characters in a character field. Therefore, the data must be placed into a memo field.
WORKAROUNDAdd a character field to the table that contains the results of the query. Replace that character field with the contents of the memo field. For example, if the resulting table contains a memo field called sqlmemo, add a character field with the name sqlchar to the table. Then use the following command to copy the data from the memo field to the character field:
REPLACE ALL sqlchar WITH TRIM(sqlmemo)Then remove the memo field from the table.
STATUSMicrosoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
|
Additional reference words: 3.00 VFoxWin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |