Results 1 to 2 of 2
  1. #1
    btidwell3 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2011
    Posts
    13

    Carriage return in a CSV file

    To All,



    I am using the Access 2003 text exporter to create a CSV file. The end user has requested the addition of a carriage return at the end of each line. There is already a line feed at the end of each line.

    What is the easiest way to add the CR?

    Thanks in advance.

    Bill T.

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    In vba you can use vbCrLf (intrinsic) to add a carriage return and LineFeed to a record.

    Force carriage return in string Modules & VBA. ... Chr(10) returns a linefeed character. Chr(13) is a carriage return

    If you added a Line feed by appending a Chr(10), you could read your file and append a Chr(13) to each record.

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

Similar Threads

  1. Removing all carriage returns from a database
    By Yesideez in forum Access
    Replies: 2
    Last Post: 06-26-2011, 09:55 AM
  2. Replies: 1
    Last Post: 11-05-2010, 04:31 PM
  3. MySQL Linked Tables - Carriage Return
    By warrenk in forum Access
    Replies: 1
    Last Post: 03-28-2010, 01:56 AM
  4. Importing html data - Carriage Return Problem
    By MichelleNZ in forum Import/Export Data
    Replies: 1
    Last Post: 11-26-2009, 05:13 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