Replace a specific character in the memo field

B

Bonnie

I need to replace a specific character in a memo field
with its unicode string, say &#37032. If I use "find and
replace", Access replaces all characters in the field with
the unicode string, i.e. the value of the field becomes
&#37032&#37032&#37032&#37032 . There are more than 6
thousand records in this database. What is the best way to
handle this?
 
J

John Vinson

I need to replace a specific character in a memo field
with its unicode string, say &#37032. If I use "find and
replace", Access replaces all characters in the field with
the unicode string, i.e. the value of the field becomes
&#37032&#37032&#37032&#37032 . There are more than 6
thousand records in this database. What is the best way to
handle this?

Depends on your version of Access. If you have 2002 or later, you can
use an Update query to update Memofield to

Replace([Memofield], "X", &#37032)

to replace all the X's with the selected character.

If you have an earlier version post back - it can still be done but
requires an extra step or two.

John W. Vinson[MVP]
(no longer chatting for now)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top