PC Review


Reply
Thread Tools Rate Thread

Carriage Returns

 
 
Mark Haigh
Guest
Posts: n/a
 
      17th Aug 2004
I have some data, stored in a memo field, that contains
Carrriage Returns.

I have to write this data into a different table, but need
to strip the CR/LF and replace it with a space.

Can anyone help me with how to do this?

Many thanks

Mark.
 
Reply With Quote
 
 
 
 
Alex Dybenko
Guest
Posts: n/a
 
      17th Aug 2004
you can use replace() function:
strNew=replace(rst!MyMemo,vbcrlf," ")

then save strNew to different table
HTH
--
Alex Dybenko (MVP)
http://Alex.Dybenko.com
http://www.PointLtd.com


"Mark Haigh" <(E-Mail Removed)> wrote in message
news:797801c4843c$e779f450$(E-Mail Removed)...
>I have some data, stored in a memo field, that contains
> Carrriage Returns.
>
> I have to write this data into a different table, but need
> to strip the CR/LF and replace it with a space.
>
> Can anyone help me with how to do this?
>
> Many thanks
>
> Mark.



 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      17th Aug 2004
Use the Replace() function in the Append query that you use to populate the
other table.

Example of what you might enter in the Field column in query design:
Replace([MyMemoField], Chr(13) & Chr(10), " ")

Note that Access 97 and earlier has no Replace() function, and unpatched
versions of Access 2000 may have problems with it.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Mark Haigh" <(E-Mail Removed)> wrote in message
news:797801c4843c$e779f450$(E-Mail Removed)...
>I have some data, stored in a memo field, that contains
> Carrriage Returns.
>
> I have to write this data into a different table, but need
> to strip the CR/LF and replace it with a space.
>
> Can anyone help me with how to do this?
>
> Many thanks
>
> Mark.



 
Reply With Quote
 
Mark Haigh
Guest
Posts: n/a
 
      17th Aug 2004
Thanks Allen
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing carriage returns Tom Microsoft Word Document Management 4 6th Aug 2004 07:25 AM
How do I stop MS Outlook 2002 from removing carriage returns (by default) Shiperton Henethe Microsoft Outlook Discussion 1 5th Jul 2004 07:40 PM
Re: Mail Merge and carriage returns in fields Cindy M -WordMVP- Microsoft Word Document Management 0 13th Apr 2004 08:48 PM
Outlook 2002 eating carriage returns :( David Winter Microsoft Outlook Discussion 0 22nd Mar 2004 09:07 PM
Carriage returns disappear Chris Microsoft Outlook Discussion 0 11th Sep 2003 07:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:27 PM.