Results 1 to 4 of 4
  1. #1
    chris bridgeman is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2015
    Posts
    2

    Importing from Excel - error message: "subscript out of range"

    Trying to import data from Excel into an existing table in Access 2007. The import fails and keeps getting the error message: "subscript out of range". All of the column headings in the 1st row are exactly the same as the table in Access, and the data types are all text except for the key which is a number. I've imported to this table many times and not had a problem and can't figure this out. Any suggestions?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    We need something to analyse. What method are you using for import? Post relevant code. Provide the Excel file for analysis - follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    chris bridgeman is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2015
    Posts
    2
    Quote Originally Posted by June7 View Post
    We need something to analyse. What method are you using for import? Post relevant code. Provide the Excel file for analysis - follow instructions at bottom of my post.
    I've solved the problem by converting the Excel files to .csv files and then importing the .csv file. Still not sure why the Excel file won't import directly, but I appreciate the help. I can't forward the file I'm importing to for your analysis because it is way too large even when compressed.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    Could have provided a reduced dataset. However, since you have a solution, guess that is moot.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Suppress "Error" message following "Cancel = True"
    By GraeagleBill in forum Programming
    Replies: 7
    Last Post: 03-23-2014, 05:40 PM
  2. Replies: 4
    Last Post: 02-13-2013, 02:35 PM
  3. Replies: 3
    Last Post: 02-01-2013, 12:26 PM
  4. "Subscript out of range" Error
    By yes sir in forum Access
    Replies: 21
    Last Post: 08-16-2012, 08:02 PM
  5. Replies: 8
    Last Post: 11-12-2010, 10:55 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums