Article ID: 147785
Article Last Modified on 1/19/2007
APPLIES TO
- Microsoft Access 97 Standard Edition
This article was previously published under Q147785
Novice: Requires knowledge of the user interface on single-user computers.
SYMPTOMS
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.
CAUSE
Microsoft Excel keeps track of all the used cells on a worksheet by 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.
RESOLUTION
To avoid the extra columns when you import a Microsoft Excel spreadsheet,
use one of the following methods:
- Open the table in Design view and delete the extra columns.
- Use Microsoft Excel to reset the last cell. For more information
about resetting the last cell, please see the following article in the
Microsoft Knowledge Base:
134617 XL: Resetting the Last Cell Fixes Memory/Printing
Problems
- Use the TransferSpreadsheet macro action and set the Range argument to
the actual range of cells to be imported.
REFERENCES
For 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.
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
244435
How to reset the last cell in Excel
Additional query words: field f3 doesn t exist in destination table
Keywords: kberrmsg kbinterop kbprb KB147785