Results 1 to 5 of 5
  1. #1
    Erictsang is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    154

    Data Import to Access that the format is not imported

    Dear all



    I have a problem need advice

    I have a data base in excel file. around 65 fields and 2900 records.

    i have checked all the fields in excel, formatted them in number, text, date etc


    When i import to Access. some time it fail and make an error data based to keep all my record.

    How can i resolve it?
    Eric

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    formatting of values has no effect - it is the underlying value that is imported.

    Excel is well known for allowing a mixture of datatypes in one column - you'll often see a warning that a number is stored as text with an offer to convert it to a number. Often identifiable because the default positioning is left for test and right for numbers. It is safest to import everything to a temporary table as text then do your conversion

    The importer will look at the first few rows (I think 16 or 32) and decide from that what the datatype is. Nulls are treated as text. So if you have a column of dates or numbers where the first few rows are blank, the importer will assume the column is text - which may not then not import to a destination table where the values expected are numeric

  3. #3
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    It is safest to import everything to a temporary table as text then do your conversion
    Another similar alternative that I often use is to export the Excel file to a delimited text file (like CSV or Tab delimited).
    Then import that, where you get to control all the data types of the incoming data fields.

  4. #4
    Erictsang is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    154
    this is exactly what happened

    in the excel file there are not of null.
    we formatted this as number, same as in Access's table but it turn out unable to add

    Eric

  5. #5
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    we formatted this as number
    As explained, formatting is not used when importing. Try JoeM's suggestion or just save the excel file as a .csv file

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

Similar Threads

  1. Replies: 2
    Last Post: 12-13-2016, 08:29 PM
  2. Replies: 3
    Last Post: 07-28-2014, 06:03 PM
  3. Replies: 2
    Last Post: 04-29-2014, 05:03 PM
  4. Replies: 3
    Last Post: 03-09-2012, 01:07 PM
  5. Import only Files not already imported
    By Rhino373 in forum Programming
    Replies: 1
    Last Post: 05-04-2011, 03:28 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