Results 1 to 3 of 3
  1. #1
    SeniorCitizen is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Dec 2021
    Posts
    32

    Type difference when importing from Excel


    I have a problem with type conversion when importing a spread sheet exported from another commercial database. The postal code in the table I'm importing into is defined a short text, because some may be international. The Excel field content happens to be all numeric with the little triangle at the top left of the first number. I tried to copy it here but the triangle did not copy. When I run the import all fields come in properly, including the currency fields marked with the same triangle, except the postal code. I get the type conversion error on the postal code and it changes the field definition in the table from short text to numeric. I am at a loss. I'm this has been handled before so any thoughts are welcomed.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    When you click on the 'little triangle' what message do you get?

    I am not able to replicate issue.

    If you want to provide sample worksheet, 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
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,180
    In excel you get a little triangle in the left upper corner when you put a number in a cell that is formatted as text.
    Click image for larger version. 

Name:	Formatted as text.JPG 
Views:	9 
Size:	18.0 KB 
ID:	46998

    What I find strange is that if you are importing the data by appending these into an existing table, this action causes the field definition to change from a text field to a numeric field. IMO this can only happen if you do the import through VBA code.
    So to check this, we would need the code you use to import the excel sheet into Access.

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

Similar Threads

  1. Replies: 4
    Last Post: 12-08-2017, 11:30 AM
  2. Type Conversion Errors Importing From Excel Workbook
    By deekadelic in forum Import/Export Data
    Replies: 18
    Last Post: 06-18-2016, 08:07 AM
  3. Replies: 9
    Last Post: 11-20-2013, 03:16 PM
  4. Replies: 5
    Last Post: 01-09-2012, 05:55 PM
  5. Type error when importing Excel spreadsheet
    By jlmnjem in forum Database Design
    Replies: 2
    Last Post: 08-27-2006, 07:26 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