PRB: Importing MS Excel Spreadsheet Gives Field Names A, B, CID: Q101441 2.50 2.50a 3.00| 2.00 2.50 2.50a kbprg kbprb
The information in this article applies to:
SYMPTOMSImporting a Microsoft Excel spreadsheet into FoxPro results in incorrect field names. If the field names are designated as "Name", "Customer", and "Address" on the first row of the spreadsheet, they will show as "A", "B", and "C" in the FoxPro .DBF file.
CAUSEBy design, FoxPro will use the column headings, not a row of information, from a Microsoft Excel spreadsheet as the field names in the database created with the IMPORT command.
RESOLUTIONTo work around this behavior, do the following in Microsoft Excel: 1. On the spreadsheet you want to import into Microsoft FoxPro, select 2. Do one of the following:
3. From the File menu, choose Save As and save the spreadsheet as type
4. Switch to FoxPro and open the DBF4 file; its extension is .DBF.
The field names will now be based on the first row of data from the Microsoft Excel spreadsheet. Additional reference words: VFoxWin 3.00 FoxDos FoxWin 2.00 2.50 2.50a KBCategory: kbprg kbprb KBSubcategory: FxinteropSpread
|
Last Reviewed: April 30, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |