FIX: Import Wizard Does Not Import Spreadsheet Cells as Null

Last reviewed: February 19, 1997
Article ID: Q162073
The information in this article applies to:
  • Microsoft Visual FoxPro for Macintosh, version 3.0b
  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b

SYMPTOMS

When importing an Excel 5.0 for Macintosh spreadsheet or an Excel 7.0 for Windows 95 spreadsheet containing blank cells with the Import Wizard, the resulting fields in the new table contain zeros. This behavior occurs regardless of the value of the SET NULL command.

RESOLUTION

Issue a SET NULL ON command and use the IMPORT command. You can also use the APPEND FROM ... Type XL5 command after creating a table that supports null numeric values.

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 5.0 for Windows.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a spreadsheet that contains some blank cells. Make sure the cells are numeric.

  2. Save the spreadsheet into the Visual FoxPro folder and close Excel.

  3. Type the following command in the Command window:

          SET NULL ON
    

  4. Start the Import Wizard, change the file type to Excel 5.0, and continue with the import process. In step three, notice the blank cells now appear as fields containing zeros.

  5. Click Finish.

  6. After the Import Wizard closes, open the new table and browse it. The fields that should be blank contain zeros.

  7. Close the table and delete the file.

  8. Type the following command in the Command window:

          SET NULL ON
    

  9. Select Import from the File menu. Import the file as type Excel 5.0.

  10. Type the following command in the Command window:

           BROWSE
    

        Notice the fields in the table contain null values where appropriate.
    


KBCategory: kbtool kbbuglist
KBSubcategory: FxtoolWizother VFoxWin VFoxMac buglist3.00 buglist3.00b
fixlist5.00
Additional reference words: 3.00 3.00b


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 19, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.