repartial text

comeng

New member
Local time
Today, 00:09
Joined
Nov 30, 2006
Messages
8
Hi
Looking for help with partial text replacement

I get various tables with Forenames in them some of which are shortened ie Elizh for Elizabeth, using an update query i can obviously convert all the Elizh's to Elizabeth but when the Elizh appear as the second or third name I am stumped ie Ann Elizh Mary.
would welcome any suggestions of ways of dealing with this
 
You can use the Replace() function to replace any occurrence with the full "Elizabeth".

e.g.

Loop through table
For each record, Replace(name,"Elizh","Elizabeth")
End loop

If Elizh is anywhere, it gets replaced. f it doesn't exist in a record, nothing happens.
 
thanks matt

nearly got that but replace function keeps coming back with a compile error
"Expected =" will keep looking to see what I am doing wrong.

Incidentally using Access 2000
Phil
 

Users who are viewing this thread

Back
Top Bottom