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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

search and delete text



 
 
Thread Tools Display Modes
  #1  
Old July 24th, 2009, 09:59 PM posted to microsoft.public.access.gettingstarted
gls858
external usenet poster
 
Posts: 473
Default search and delete text

I have a memo field that contains the same phrase in every record.

Is there any way other than editing each record to get rid of the phase.

gls858
  #2  
Old July 24th, 2009, 11:03 PM posted to microsoft.public.access.gettingstarted
Ken Snell [MVP]
external usenet poster
 
Posts: 279
Default search and delete text

You can run an update query (make a copy of the database file first!):

UPDATE YourTableName
SET MemoFieldName = Replace(MemoFieldName, "That Pesky Phrase", "")
WHERE MemoFieldName Like "*That Pesky Phrase*";

--

Ken Snell
MS ACCESS MVP
http://www.accessmvp.com/KDSnell/


"gls858" wrote in message
...
I have a memo field that contains the same phrase in every record.

Is there any way other than editing each record to get rid of the phase.

gls858



  #3  
Old July 27th, 2009, 02:56 PM posted to microsoft.public.access.gettingstarted
gls858
external usenet poster
 
Posts: 473
Default search and delete text

Ken Snell [MVP] wrote:
You can run an update query (make a copy of the database file first!):

UPDATE YourTableName
SET MemoFieldName = Replace(MemoFieldName, "That Pesky Phrase", "")
WHERE MemoFieldName Like "*That Pesky Phrase*";


Thanks Ken that did the trick. I appreciate the help.

gls858
 




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 06:16 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.