Importing from Excel (1 Viewer)

tjtross

Registered User.
Local time
Today, 14:56
Joined
Mar 31, 2015
Messages
12
I am trying to import from Excel and append to an existing table. My excel sheet is named tblStatus and I am trying to append it to my Access table "tblStatus".

I get an error message that says "The first row contains some data that can't be used for valid Access Field Names. In these cases, the wizard will automatically assign valid field names." (I used the excel sheet to set up my table.) After I click OK, I get to the point where I can click finish, and I get a "Subscript out of range" error.

MY row headers are:
strOrderOps
strOrderNo
strOperation
strOrderType
dtmBasicStartDate
dtmActualFinishDate
dtmCalFinishDate
strStatus

I am not sure what is going on.
 

Trevor G

Registered User.
Local time
Today, 20:56
Joined
Oct 1, 2009
Messages
2,341
Are you using the Wizard to Import? Have you tried looking at a MACRO to do the import?

If you struggle perhaps zip an extract of the spreadsheet and Database so we can take a look at it for you and advice further.
 

BitsOfBytes

Registered User.
Local time
Today, 15:56
Joined
Apr 14, 2015
Messages
15
I have ran into a similar issue with importing a spreadsheet. Turns out one of my headers on the worksheet had a hyperlink embedded in it.
 

tjtross

Registered User.
Local time
Today, 14:56
Joined
Mar 31, 2015
Messages
12
I found my problem. There was some deleted data in a column outside the required columns. When I deleted those columns, it cured my problem.
 

Users who are viewing this thread

Top Bottom