having spent half a working day on this and doing all the usual things re
data types, named ranges etc etc, the only way round it I can find it to
import the spreadsheet into a new table rather than appending it to an
existing one, and then taking the existing data from the Access table to the
newly created one. A real pain but at least it worked. Only trouble is - if
you have existing queries, reports etc they may have to be re-done.
"Francis of Harvey" wrote:
> In addition to making sure that the data types in the Excel sheet columns
> correspond to the data types in the Access table, you may want to make sure
> that the Ecel sheet has no hidden columns or rows. I encountered a persistent
> problem with one Excel sheet that gave a ""subcript out of range" message.
> The only way this sheet would import was for me to highlight all columns and
> then select the command to "unhide columns" in the format menu. Although I
> had no hidden columns, this command itself was sufficient for the Excel sheet
> to adjust itself and allow it to be imported into Access. It seems that
> Access is very sensitive to certain formatting situations in Excel that
> prevent Excel tables from being imported. Whatever the reason, this action
> finally allowed the import to take place. Hope this info helps you.
>
> "Joe Ramos" wrote:
>
> > When I'm importing an Excel spreadsheet into an Access DB the import wizard
> > gives me a dialog box stating that the subscript is out of range. I am
> > importing the table to be used in a report that has already been created.
> > I've tried importing the spreadsheet to a new DB and get the same error. I'm
> > working with Office 2003.
|