Results 1 to 9 of 9
  1. #1
    alexalex_ru is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jul 2014
    Posts
    5

    Exclamation Database grows extremly after DoCmd.TransferSpreadsheet acImport

    After code runs:
    DoCmd.TransferSpreadsheet acImport, , "Temptable1", FilePath, True, "Sheet1!A1:AX65000"
    Access freezes and after 20 min exeption is throws because size of database grows from 15Mb to 2Gb.
    I know the size limits of file. And seems that database grows because of error tables created. But why and how to stop it?

  2. #2
    lfpm062010 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Location
    US
    Posts
    415
    The error table file contains information on why the spreadsheet can't be imported or can't convert value or ... etc.

    Correct your error on the spreadsheet or change your table to accept the value. Then try again.

    Questions: how many columns and rows do you have on the spreadsheet? You should not need to specific the range unless there is break in the spreadsheet.

  3. #3
    alexalex_ru is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jul 2014
    Posts
    5
    Number of rows is varied. At moment around 7000, but range of columns is always from A to AP.
    You mean it's better use? :
    DoCmd.TransferSpreadsheet acImport, , "Temptable1", FilePath, True, ""
    But why size grows to 2Gb? It looks unnormaly...

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    To recover lost/inaccessible space, do a Compact and Repair.

  5. #5
    alexalex_ru is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jul 2014
    Posts
    5
    Sometimes there are blank values in first rows

  6. #6
    alexalex_ru is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jul 2014
    Posts
    5
    sure i do compact and repair

  7. #7
    lfpm062010 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Location
    US
    Posts
    415
    Compact and Repair will help. Clean up the data and do compact and repair and try the TransferSpreadsheet again.

    7000 rows should not cause it to grow to 2 GB. Unless every column contains lots text data.

    TransferSpreadsheet will usually use the first sheet on the file. So, the "Sheet1!A1:AX65000" is optional.

  8. #8
    alexalex_ru is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jul 2014
    Posts
    5
    Seems that database has hanging because there was 99 tables with import errors. Seems that 99 tables is a limit.

  9. #9
    lfpm062010 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Location
    US
    Posts
    415
    There is no need to keep the spreadsheet import error tables. Once you have resolve your error, there is no need to keep the error tables.

    I don't know the limit of the error tables. But, I am sure I can find it.

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

Similar Threads

  1. Importing Excel file: ADODB, DAO or DoCmd.TransferSpreadsheet
    By Monterey_Manzer in forum Import/Export Data
    Replies: 3
    Last Post: 08-13-2013, 11:34 AM
  2. Import Excel data with acImport
    By djleggins in forum Import/Export Data
    Replies: 2
    Last Post: 11-19-2011, 11:09 AM
  3. Replies: 4
    Last Post: 11-09-2011, 08:40 AM
  4. DoCmd.TransferDatabase acImport Issue
    By remingtont in forum Programming
    Replies: 0
    Last Post: 11-12-2010, 03:59 PM
  5. Access Database size Grows too fast
    By no-e in forum Access
    Replies: 0
    Last Post: 12-16-2008, 02:29 PM

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