FIX: Import Wizard Does Not Import Spreadsheet Cells as Null
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
- Create a spreadsheet that contains some blank cells. Make sure the cells
are numeric.
- Save the spreadsheet into the Visual FoxPro folder and close Excel.
- Type the following command in the Command window:
SET NULL ON
- 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.
- Click Finish.
- After the Import Wizard closes, open the new table and browse it. The
fields that should be blank contain zeros.
- Close the table and delete the file.
- Type the following command in the Command window:
SET NULL ON
- Select Import from the File menu. Import the file as type Excel 5.0.
- Type the following command in the Command window:
BROWSE
Notice the fields in the table contain null values where appropriate.
Additional query words:
Keywords : kbMAC kbVFp kbVFp300bbug buglist3.00 FxtoolWizother
Version : MACINTOSH:3.0b; WINDOWS:3.0,3.0b
Platform : MACINTOSH WINDOWS
Issue type :