FIX: A Microsoft Excel worksheet that contains formulas does not correctly import in Visual FoxPro for Windows 3.0 (137949)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Data Access Components 2.5
This article was previously published under Q137949 SYMPTOMS
If a Microsoft Excel spreadsheet's cells contain formulas, the Import
function in Visual FoxPro will not import the data correctly. All or part
of the data may be invalid when it is imported to the .dbf file.
RESOLUTION
There are two ways to work around this problem. Both correctly resolve the
cells containing formulas. However, the first is the easiest and
recommended method to use.
- In Microsoft Excel, save the file as as a .dbf file. Then open the .dbf
file in Visual FoxPro with the USE <dbf name> command.
- Use an ODBC connection to the Microsoft Excel file. Create a remote view
or cursor that can be then copied to a ,dbf file with the COPY TO <new
table name> command. The actual steps in creating the ODBC connection
are beyond the scope of this article due to the varying factors which
weigh in the process. For more information about ODBC, please see the
following articles in the Microsoft Knowledge Base:
130732 How To Create a Data Source to Access Microsoft Excel Files
130137 How to Use ODBC to Run SQL SELECT on Microsoft Excel Data
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. This problem was corrected in
Visual FoxPro 3.0b for Windows.
Modification Type: | Major | Last Reviewed: | 3/17/2005 |
---|
Keywords: | kbbug kbfix KB137949 |
---|
|