Results 1 to 10 of 10
  1. #1
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398

    Errors during import of spreadsheet

    I can't figure out why it's truncating some of the records. Can you figure out what the problem is?
    Attached Files Attached Files

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    For security reasons, I am unable to download files off the internet, but if you describe your problem in detail, I may be able to help out.
    Off the top of my head, one of the first things to check is how the fields in the table you are importing to are formatted. If you import a decimal field into a field that is formatted as Integer, obviously those decimals will be truncated.

  3. #3
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398
    Thanks for replying!

    It's really weird. This file is created by Microsoft's MapPoint application with an add-in. If I create this file with 40 records, its works properly. If I create it with 50 records, the import processes the first 41 records correctly, then any records after 41 it produces an error table and in the explanation, it shows it truncated the record. I created the file mulitple times to make sure it wasn't a freak happening. I tested the file so that if anyone uses the standard excel import within Access 2007/2010, they will hopefully get the same results as I received.

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Are you importing it into a new table, or an existing table?
    What kind of file is it (text, Excel, etc)?
    Do you use an Import Specification?
    If you look at the 41st and 42nd records in your import file, do you notice anything different or odd about them (there aren't any breaks or odd characters, are there)?

  5. #5
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398
    A new table
    excel
    no import specification
    no difference in the records

  6. #6
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    The issue with importing Excel files into new tables is that Excel and Access try to communicate with each other and "figure out" what format wach field should have. I believe it looks at the top ten records.

    So if you have a field where there are no decimals in the top ten records, but decimals do appear in that field further on down, Access is probably going to assume an Integer format, which will truncate decimals.
    Likewise, if your have a field that has only numbers in it on the first ten records (maybe some sort of ID), and then further IDs down the page have letters in them, Access is probably going to pick a number format, causing the entries with letters to error out.

    Personally, I hate importing Excel files into new Access tables - you have very little control over the process. I prefer to import the Excel files into EXISTING Access tables where you have already pre-defined the format of all the table fields. Then you are taking the Excel-Access guess work out of it.

    A long time ago, I had some Excel imports that I just couldn't get to work at all. In that case, as a last resort, I opened my file in Excel and saved as a text file (CSV or tab-delimited), and then imported that text file into Access where I have full control over the whole import process.

  7. #7
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398
    I've just done some more testing, within my spreadsheet, if I remove all the records that successfully are imported, so now the excel spreadsheet's first record is the record that produced the error, it imports successfully. Within the original spreadsheet error is produced at column "CL". So that is column number 64. Does Access have limitiations on the import with the number of columns in a spreadsheet.

  8. #8
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    I believe the limit is 256 fields.

  9. #9
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398
    I'm under 256 fields, so I wonder what's causing the problem.

  10. #10
    crowegreg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Posts
    398
    Here's what I've determined in my testing, if I link the spreadsheet rather than import, it works.

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

Similar Threads

  1. Import Errors - Fields with Numbers and Letters
    By Eekers in forum Import/Export Data
    Replies: 5
    Last Post: 01-10-2012, 02:52 PM
  2. import spreadsheet
    By slimjen in forum Access
    Replies: 1
    Last Post: 09-21-2011, 09:06 AM
  3. Blank column causing errors on import
    By brickballer in forum Import/Export Data
    Replies: 7
    Last Post: 05-20-2011, 12:54 PM
  4. import excel spreadsheet though outlook
    By bopsgtir in forum Import/Export Data
    Replies: 0
    Last Post: 03-18-2011, 09:07 AM
  5. Import 1 spreadsheet into two tables
    By Matthieu in forum Import/Export Data
    Replies: 4
    Last Post: 02-03-2010, 08:19 PM

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