ACC: Imported MS Excel Spreadsheet May Have Blank ColumnsLast reviewed: June 3, 1997Article ID: Q147785 |
The information in this article applies to:
SYMPTOMSNovice: Requires knowledge of the user interface on single-user computers. When you import a Microsoft Excel spreadsheet whose cell table goes beyond the last cell that actually contains data, you may get blank columns in the Microsoft Access table. This occurs with the TransferSpreadsheet macro and the Import Menu commands. When you use a TransferSpreadsheet macro action or the TransferSpreadsheet method in Visual Basic for Applications to append data to an existing table from a spreadsheet file, you may receive the following error message:
Field 'F3' doesn't exist in destination table '<table>'. Microsoft Access was unable to append it.The field specified in the error message may vary.
CAUSEMicrosoft Excel keeps track of all the used cells on a worksheet using an "activecell" table. In some cases, the last cell of that table may refer to a cell outside of the area of the worksheet that is actually being used. When imported into Microsoft Access, all cells of the "activecell" table will be imported; this may result in blank fields.
RESOLUTIONYou can use one of the following methods to avoid the extra columns when you import a Microsoft Excel spreadsheet:
MORE INFORMATION
Steps to Reproduce Behavior
REFERENCESFor more information about importing data from Microsoft Excel, search the Help Index for "Excel, importing and linking Microsoft Excel data," and then "Import or link data from a spreadsheet." For more information about the TransferSpreadsheet macro action, search the Help Index for "TransferSpreadsheet action," or ask the Microsoft Access 97 Office Assistant. |
Keywords : IntpOff kberrmsg kbinterop
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |