ACC2: Imported Microsoft Excel Data Contains Wrong Columns (120131)
The information in this article applies to:
This article was previously published under Q120131 Novice: Requires knowledge of the user interface on single-user computers.
SYMPTOMS
When you are importing data from a Microsoft Excel spreadsheet, Microsoft
Access may import the wrong data if the specified range extends beyond
column Z (the 26th column), or if the specified range begins after column
Z.
CAUSE
Microsoft Access miscounts columns by one after the 26th column. For
example, if you specify an import range of A1:AD10 (30 columns and 10
rows), the actual range that will be imported is A1:AC10 (29 columns and 10
rows).
If the import range begins with a column beyond column Z, the first column
imported will be one column to the left of the specified column. For
example, if you specify an import range of AF1:BB4 (23 columns and 4 rows),
the actual range that will be imported is AE1:BA4 (23 columns and 4 rows).
RESOLUTION
There are three workarounds for this problem:
- Create a named range in Microsoft Excel that includes all the cells you
want to import, and then use that named range to import the data into
Microsoft Access.
- Add an extra column to the range you specify when you are importing the
data. For example, if you want to import the 27 columns in the range
A1:AA1, specify the range A1:AB1.
- If the range you want to import begins after column Z, offset the column
range by one. For example, if you want to import the range AF1:BB1,
specify the range AG1:BC1.
STATUS
Microsoft has confirmed this to be a problem in Microsoft Access version
2.0. This problem no longer occurs in Microsoft Access version 7.0.
REFERENCES
Microsoft Access "User's Guide," version 2.0, Chapter 9, "Importing,
Exporting, and Attaching," pages 175-179
Modification Type: | Major | Last Reviewed: | 6/25/2002 |
---|
Keywords: | kbbug kbusage KB120131 |
---|
|