Results 1 to 2 of 2
  1. #1
    AWetzel is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    1

    importing text file with carriage return between text qualifiers

    I'm trying to import a text file into access. The file is tab delimited and uses double quotations as a text qualifier. One of the fields in the text file is a note field and every now and then the person entering the note uses a carriage return (hits the enter key) while doing so. The attachment shows an example of this...




    My understanding is that when importing, everything between the two instances of text qualifers should be treated as a single value and the carriage return disregarded. However when I import it the data comes in exactly as it is above which causes field types and column headings to not match up.

    Can anyone tell me a way around this short of manually deleting each carriage return?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Your understanding of the import spec double quote escape character is correct and you have probably uncovered a flaw in the parser as the Cr or CrLf sequence is taken as an end of record as well. If is just a Cr and the end of record is CrLf then you might be able to use the Replace() function to assist the import parser.

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

Similar Threads

  1. Skipping headers when Importing a text file.
    By bullwinkle55423 in forum Import/Export Data
    Replies: 1
    Last Post: 09-01-2010, 03:25 PM
  2. Import to text - only text value NOT importing
    By Gerry in forum Import/Export Data
    Replies: 10
    Last Post: 03-26-2010, 06:55 AM
  3. Importing html data - Carriage Return Problem
    By MichelleNZ in forum Import/Export Data
    Replies: 1
    Last Post: 11-26-2009, 05:13 PM
  4. Importing text file into Access Table
    By Anthony in forum Import/Export Data
    Replies: 13
    Last Post: 09-23-2009, 04:47 PM
  5. How to force carriage return between strings?
    By Divardo in forum Reports
    Replies: 1
    Last Post: 05-21-2009, 10:50 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