Results 1 to 2 of 2
  1. #1
    chitan is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    1

    Unhappy Replace Carriage Returns with Spaces

    I need help with what I thought would be a simple task.

    I have a field (titled "description") with several lines that contain carriage returns/line breaks. I need to replace all of these carriage returns with spaces.

    I have tried using the both codes "ALT+0010" and "Chr(13) & Chr(10)" in a Replace Expression:

    Expr1: Replace([description], "Chr(13) & Chr(10)", " ")


    Expr1: Replace([description], "(type ALT+0010 here)", " ")

    But running the expression only opens up a new table, "Query1", showing what the results of the replacement are. It doesn't actually change the original table.

    Can someone please help me with this? I can't believe how difficult it is!

    Thank so much!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You want an update query:

    UPDATE TableName
    SET description = Replace(...)
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Carriage return in a CSV file
    By btidwell3 in forum Import/Export Data
    Replies: 1
    Last Post: 09-09-2011, 05:19 PM
  2. Removing all carriage returns from a database
    By Yesideez in forum Access
    Replies: 2
    Last Post: 06-26-2011, 09:55 AM
  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

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