Results 1 to 11 of 11
  1. #1
    Gerry is offline Rusty Developer
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    Kings Mountain, NC
    Posts
    33

    Import to text - only text value NOT importing

    I have a spreadsheet (XL 2007) with a column that is mostly (all but 1) numeric values (10 digits). I'm importing this to a text field, to accommodate the single text value (12 characters long) in the column. I've left the field length at 255 for now.



    Everything EXCEPT that text entry is being imported. For that record, I get a NULL value in that field.

    What am I missing?

    (ALSO: I've been working with a saved import, to ensure consistency - is there a way to get in and look at those settings?)

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Quote Originally Posted by Gerry View Post
    I've been working with a saved import, to ensure consistency - is there a way to get in and look at those settings?
    It is the Advanced button about halfway down this link.

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922

  4. #4
    Gerry is offline Rusty Developer
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    Kings Mountain, NC
    Posts
    33
    Quote Originally Posted by RuralGuy View Post

    The file I'm importing is an Excel file, not a text file. My problem is with a single column, which I wish to import as text.

  5. #5
    Gerry is offline Rusty Developer
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    Kings Mountain, NC
    Posts
    33
    Quote Originally Posted by RuralGuy View Post
    It is the Advanced button about halfway down this link.

    No link in this message. Can you re-post?

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Sorry about the missing link. I was just trying to show you how to look at and edit your import specifications.

  7. #7
    Gerry is offline Rusty Developer
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    Kings Mountain, NC
    Posts
    33
    Quote Originally Posted by RuralGuy View Post
    Sorry about the missing link. I was just trying to show you how to look at and edit your import specifications.
    Ah! I see what you mean. Unfortunately, that seems to only appear when using the text import. That's exactly what I was looking for - unfortunately, it doesn't work with my import. /grumble

  8. #8
    Gerry is offline Rusty Developer
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    Kings Mountain, NC
    Posts
    33
    An update on this one:

    If I reformat the column in Excel (this takes several steps to ensure format doesn't change to scientific notation on some numbers) to Text, then all imports properly.

    It appears that Access is running a conversion filter based upon the first entry, which causes the text entry to fail (since the first entry is numeric).

    Anyone have thoughts on how to prevent this? I've been using a saved import, but would willingly build my import in VBA if there was a solution to this issue.

  9. #9
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I was just going to suggest that. It seems to me that's what I had to do to get it to import correctly. Access is just being waaaayyyy too helpful here.

  10. #10
    Gerry is offline Rusty Developer
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    Kings Mountain, NC
    Posts
    33
    LOL - that's exactly the words I used to describe this to my wife.

    We're going to be doing some programming in Excel before the import, so we may just roll a text conversion into that programming, and put that whole column (including the numeric values) in text format. That would solve the import without going through fixed-width or delimited exports.

  11. #11
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I think that is as close as we can get to Solved for this thread. Do you want to follow the link in my sig and mark this thread?

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

Similar Threads

  1. Import multiple text files automatically
    By instructorTek in forum Import/Export Data
    Replies: 30
    Last Post: 10-20-2012, 04:50 PM
  2. Import text file question
    By sumdumgai in forum Import/Export Data
    Replies: 14
    Last Post: 03-23-2010, 07:59 AM
  3. Importing text file into Access Table
    By Anthony in forum Import/Export Data
    Replies: 13
    Last Post: 09-23-2009, 04:47 PM
  4. import text specification
    By brunoylupe in forum Import/Export Data
    Replies: 12
    Last Post: 08-09-2009, 04:47 PM
  5. Split text field into two text fields
    By Grant in forum Access
    Replies: 6
    Last Post: 01-31-2008, 05:52 AM

Tags for this Thread

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