PC Review


Reply
Thread Tools Rate Thread

Replace Text in a memo field

 
 
ndt
Guest
Posts: n/a
 
      18th Mar 2008
Hi,
This may or may not be an easy problem to solve as I'm relatively just
average with access.

What I have is a Memo field with html in it. It is a template I use
for selling items.

What I would like to do is run a query that will replace certain text
in the memo field using data stored in another access table but leave
the rest of the text "as is".

Any suggestions or let me know if you need more info...
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      18th Mar 2008
Use the Replace function in your Update query:

UPDATE MyTable
SET MyField = Replace([MyField], "some old text", "some new text")
WHERE [MyField] LIKE "*some old text*"

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"ndt" <(E-Mail Removed)> wrote in message
news:f34dd9a7-9aaa-4531-ad9e-(E-Mail Removed)...
> Hi,
> This may or may not be an easy problem to solve as I'm relatively just
> average with access.
>
> What I have is a Memo field with html in it. It is a template I use
> for selling items.
>
> What I would like to do is run a query that will replace certain text
> in the memo field using data stored in another access table but leave
> the rest of the text "as is".
>
> Any suggestions or let me know if you need more info...



 
Reply With Quote
 
 
 
 
ndt
Guest
Posts: n/a
 
      18th Mar 2008
I did this and my memo field has been drastically shortened. what
happened?


On Mar 18, 1:32*pm, "Douglas J. Steele"
<NOSPAM_djsteele@NOSPAM_canada.com> wrote:
> Use the Replace function in your Update query:
>
> UPDATE MyTable
> SET MyField = Replace([MyField], "some oldtext", "some newtext")
> WHERE [MyField] LIKE "*some oldtext*"
>
> --
> Doug Steele, Microsoft Access MVPhttp://I.Am/DougSteele
> (no e-mails, please!)
>
> "ndt" <tama...@gmail.com> wrote in message
>
> news:f34dd9a7-9aaa-4531-ad9e-(E-Mail Removed)...
>
>
>
> > Hi,
> > This may or may not be an easy problem to solve as I'm relatively just
> > average with access.

>
> > What I have is aMemofieldwith html in it. It is a template I use
> > for selling items.

>
> > What I would like to do is run a query that will replace certaintext
> > in thememofieldusing data stored in another access table but leave
> > the rest of thetext"as is".

>
> > Any suggestions or let me know if you need more info...- Hide quotedtext-

>
> - Show quotedtext-


 
Reply With Quote
 
Jeff Boyce
Guest
Posts: n/a
 
      18th Mar 2008
We aren't there. We can't see what you're looking at.

"Drastically shortened" could mean so many different things. Care to
provide a real world example?

Regards

Jeff Boyce
Microsoft Office/Access MVP

"ndt" <(E-Mail Removed)> wrote in message
news:f81883a3-6bec-4ca2-8165-(E-Mail Removed)...
I did this and my memo field has been drastically shortened. what
happened?


On Mar 18, 1:32 pm, "Douglas J. Steele"
<NOSPAM_djsteele@NOSPAM_canada.com> wrote:
> Use the Replace function in your Update query:
>
> UPDATE MyTable
> SET MyField = Replace([MyField], "some oldtext", "some newtext")
> WHERE [MyField] LIKE "*some oldtext*"
>
> --
> Doug Steele, Microsoft Access MVPhttp://I.Am/DougSteele
> (no e-mails, please!)
>
> "ndt" <tama...@gmail.com> wrote in message
>
> news:f34dd9a7-9aaa-4531-ad9e-(E-Mail Removed)...
>
>
>
> > Hi,
> > This may or may not be an easy problem to solve as I'm relatively just
> > average with access.

>
> > What I have is aMemofieldwith html in it. It is a template I use
> > for selling items.

>
> > What I would like to do is run a query that will replace certaintext
> > in thememofieldusing data stored in another access table but leave
> > the rest of thetext"as is".

>
> > Any suggestions or let me know if you need more info...- Hide
> > quotedtext-

>
> - Show quotedtext-



 
Reply With Quote
 
ndt
Guest
Posts: n/a
 
      18th Mar 2008
Originally it was truncated to a little over 300 characters but now
i'm seeing the whole thing, its working like a charm. Thanks so much,
this has literally saved me thousands of hours of work manually doing
it

On Mar 18, 2:44*pm, "Jeff Boyce" <nonse...@nonsense.com> wrote:
> We aren't there. *We can't see what you're looking at.
>
> "Drastically shortened" could mean so many different things. *Care to
> provide a real world example?
>
> Regards
>
> Jeff Boyce
> Microsoft Office/Access MVP
>
> "ndt" <tama...@gmail.com> wrote in message
>
> news:f81883a3-6bec-4ca2-8165-(E-Mail Removed)...
> I did this and my memo field has been drastically shortened. what
> happened?
>
> On Mar 18, 1:32 pm, "Douglas J. Steele"
>
>
>
> <NOSPAM_djsteele@NOSPAM_canada.com> wrote:
> > Use the Replace function in your Update query:

>
> > UPDATE MyTable
> > SET MyField = Replace([MyField], "some oldtext", "some newtext")
> > WHERE [MyField] LIKE "*some oldtext*"

>
> > --
> > Doug Steele, Microsoft Access MVPhttp://I.Am/DougSteele
> > (no e-mails, please!)

>
> > "ndt" <tama...@gmail.com> wrote in message

>
> >news:f34dd9a7-9aaa-4531-ad9e-(E-Mail Removed)...

>
> > > Hi,
> > > This may or may not be an easy problem to solve as I'm relatively just
> > > average with access.

>
> > > What I have is aMemofieldwith html in it. It is a template I use
> > > for selling items.

>
> > > What I would like to do is run a query that will replace certaintext
> > > in thememofieldusing data stored in another access table but leave
> > > the rest of thetext"as is".

>
> > > Any suggestions or let me know if you need more info...- Hide
> > > quotedtext-

>
> > - Show quotedtext-- Hide quoted text -

>
> - Show quoted text -


 
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
Re: Find And Replace text in a memo field Keven Denen Microsoft Access 0 19th Oct 2009 06:03 PM
How do I replace just a part of text in a memo field by value in a Earl.AKA J.Alladien in access forum!! Microsoft Access 2 4th Mar 2009 07:33 PM
Memo Field - Append Text fields into memo field??? =?Utf-8?B?UGF0IFN0ZXdhcnQ=?= Microsoft Access 1 18th Feb 2007 09:45 PM
trouble concatenating text of 1 memo field to another memo field in same record via button ghadley_00@yahoo.com Microsoft Access Form Coding 1 9th Nov 2005 12:55 PM
Replace methode, Replace Function, Stringbuilder replace, Regex Replace, Split Cor Microsoft VB .NET 4 1st Mar 2004 03:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:43 AM.