Results 1 to 2 of 2
  1. #1
    Sck is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    82

    Bring in numeric text field to access from excel

    I'm having a issue with some source data that I import from a system. the system creates its exports as an .xls file and one of the fields has text in it like follows:

    1.1


    1.1.2
    1.2
    1.2.1
    1.2.2

    When a user opens the Excel file prior to uploading (I have asked them not to!!), Excel converts some of the rows to numbers and I get a data type error on the load because I'm loading it into a text field in the db.

    Is there a way to force Access to read it as text no matter what Excel has done to the data.

  2. #2
    ConneXionLost's Avatar
    ConneXionLost is offline Simulacrum
    Windows XP Access 2003
    Join Date
    Jan 2010
    Location
    Victoria, Canada
    Posts
    291
    When Access imports a block of data from Excel, it usually looks at the first row to determine what the data types should be for each column. So, in your Excel workbook, try placing a "dummy" row at the top of your import sheet, with a text item in the position to be read for the appropriate column. Once the import is complete, delete the dummy row from your Access table.

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

Similar Threads

  1. Field returns error when I import Text Files to Access
    By geng in forum Import/Export Data
    Replies: 3
    Last Post: 06-01-2010, 02:20 PM
  2. Replies: 2
    Last Post: 05-05-2010, 02:52 PM
  3. Replies: 0
    Last Post: 03-15-2010, 01:53 PM
  4. How to Search a Text Field in Access
    By cnbhold in forum Access
    Replies: 1
    Last Post: 01-11-2010, 05:56 PM
  5. Replies: 1
    Last Post: 10-09-2008, 04:48 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