Results 1 to 2 of 2
  1. #1
    johnseito is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    419

    loading data into access - Crashed / Access shuts down and closed

    I use this code to load excel file into access and access crashed and shuts down.



    DoCmd.TransferSpreadsheet acImport, , "table" path + file, true, "sheet!"

    normally it doesn't, not sure if because I have a huge query that does many aggregation that does it.

    Anyone know why ? Thx

  2. #2
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    If you have a "huge" query with many joins and a large number of records, it is possible that the 2 GB size limit will be reached - I've seen it happen.

    How many records are you importing, and how big is each one? Is it crashing on the import, or when you try to run the query afterwards?
    How big is the Access .accdb file?

    You could try a compact and repair before running the import.

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

Similar Threads

  1. Replies: 2
    Last Post: 09-02-2017, 10:03 AM
  2. Replies: 0
    Last Post: 03-18-2017, 03:40 AM
  3. Excel Addin to Pull Data from Closed Access Databases
    By zubair57 in forum Import/Export Data
    Replies: 0
    Last Post: 04-07-2016, 12:37 PM
  4. Replies: 3
    Last Post: 04-24-2012, 08:32 AM
  5. Replies: 4
    Last Post: 08-17-2011, 05:30 AM

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