Update Query

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

Hello All.

I have a big list of clients names. The surname was setup so that the first
letter was UCase and the remainder of the name is LCase.

However, We have many 'Mac's' e.g. Maclenan. I would like to change this to
MacLenan with the 4th letter being UCase.

So I'm looking for a query like UCASE([SName],4)
 
You could use something like this:

UCase(Left(SName,1)) & LCase(Mid(SName,2,3)) & UCase(Mid(SName,4,1)) &
LCase(Mid(SName,5,Len(SName)-4))

HTH

Jason Rice
 
Do you want all the Warrens to become WarRens?

In a small sample of surnames I have convienient, I can see the following
problem entries to think about:

Mackey-Sy
Mace
Macurak
Macon
Macias
Mackey
Macholan
Mache


assuming you have a way to 'sort out' all the MacXX's from the Macxx's and
the McXx's etc
Then you can run the query recommended by Jason and it will make the changes
you desire (with modifications for the McXx's

Ed WarRen ;)
 

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

Back
Top