Results 1 to 5 of 5
  1. #1
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591

    Copy and Paste vs Import Wizard

    I've run into this problem before. I have a text file created from an Excel spreadsheet. Using the text wizard I get the error below, but I can copy and paste (from Excel) without any errors. It is a tab delimited text file with no headers.

    What am I missing?




    Click image for larger version. 

Name:	import wizard.jpg 
Views:	17 
Size:	19.8 KB 
ID:	15481

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Do you have a header, trailer, any extra rows or columns in your Text File that might be messing it up (because they would violate your field data types or rules)?

  3. #3
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591
    possibly, but I don't know how to find it.I sure don't see anything, but I might try importing this directly from Excel and see how that goes. I'll get back to you tomorrow.

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    possibly, but I don't know how to find it.I sure don't see anything,
    Should be fairly easy to tell, just open your text file in a Text Editor and take a look at it.
    Check out the first row. Are there column header/titles? If you, you need to account for that in your import (or remove them).
    Check out the last row. Is there a footer row (maybe of totals) or extra blank lines at the bottom?
    Check out the end of a few records. Does it end directly after the last field, or are there extra tabs?

    Those are some of the things you might want to look for.

    If importing directly from Excel, I would recommend naming the range you want to import in Excel, then when you import, select the option that lets you import by named range instead of sheet name.

  5. #5
    Paul H's Avatar
    Paul H is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Location
    Richmond, VA
    Posts
    591
    I just opened the text file and it is ugly. It has formatted dollar signs in it which I believe is blowing up the import. I wasn't expecting that. I'll need to remove all formatting before saving as text.

    I just made some changes that worked. I had to format the money columns as general, but leave the date formatting on my date column. Live and learn.

    Thank you for pointing the way.

    Paul

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

Similar Threads

  1. Copy and Paste Row (vb)
    By Computer202 in forum Programming
    Replies: 7
    Last Post: 03-28-2014, 01:59 AM
  2. Copy-Paste on Internet
    By BorisGomel in forum Access
    Replies: 5
    Last Post: 11-09-2011, 10:33 AM
  3. Copy-Paste
    By BorisGomel in forum Access
    Replies: 4
    Last Post: 10-25-2011, 07:17 AM
  4. Copy/paste to new record.
    By xbox1513 in forum Forms
    Replies: 1
    Last Post: 02-23-2011, 04:52 PM
  5. Copy / Paste some fields
    By isnpms in forum Access
    Replies: 2
    Last Post: 08-25-2010, 10:13 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