A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Search and Replace



 
 
Thread Tools Display Modes
  #1  
Old May 31st, 2004, 03:08 PM
Steve Roberts
external usenet poster
 
Posts: n/a
Default Search and Replace

I've imported a table with a memo field in which I've
used "QQQ" to signify whare I need line feeds/carriage
returns (there are lots, in lots of records!).

I can't find how to specify replacing text with an "LF"
(ascii 12) or CR (ascii 15) character.

Can anyone help ?

thanks, Steve Roberts
  #2  
Old May 31st, 2004, 03:33 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default Search and Replace

1. Create a query into this table.

2. Change it to an Update query: Update on Query menu.
Access adds an Update row to the grid.

3. Drag the memo field into the grid. We will call it MyMemo in this
example.

4. In the Update row under MyMemo, enter:
Replace([MyMemo], "QQQ", Chr(13) & Chr(10))

5. Run the update query.

--
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.

"Steve Roberts" wrote in message
...
I've imported a table with a memo field in which I've
used "QQQ" to signify whare I need line feeds/carriage
returns (there are lots, in lots of records!).

I can't find how to specify replacing text with an "LF"
(ascii 12) or CR (ascii 15) character.

Can anyone help ?

thanks, Steve Roberts



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:14 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.