Hi Gina,
I was experiencing this "subscript out of range" error on Access 2007, Windows 7, but I fixed it by resetting the column formats in Excel. (Details below, in case anybody was making the same mistake I was). Thanks for the help!
So now I have a related question.
In general, my workaround for Excel import/append errors (of which I get many) is to import the table under a new name, delete the original table, then rename the newly-imported table to match the original table's name: this saves me having to re-create
all relationships again. This probably isn't "best practice" and I fear it may be causing unseen problems somewhere in my database... can you suggest a better method?
(FYI) Details of the solved problem:
I exported a table from Access into Excel in order to edit a large amount of data quickly. I changed the primary key values (which are ID auto-number) of these records in order to import/append to the table from which I'd exported them, thinking I'd delete
the original records once I got the newly-edited records imported.
My answers to the questions in above thread:
- How many columns is the spreadsheet? 65
- Do you have any calculated columns? NO
- Have you looked at the spreadsheet to confirm there are no errors on the
sheet? **HERE was the problem! I set all Excel column formats to show Text, Date, Number, etc (they had been set to "General") and the import/append worked!)
- Just on a whim here, do you column headings use any Reserved Words (or
Wildcard Characters) that might confuse Access? NO
http://allenbrowne.com/AppIssueBadWord.html
- Have you tried it manually? (You know, File... Import...) THERE is no "file" command on the ribbon? But I am able to import this spreadsheet as a new table without getting the error, if that's what you're asking.