Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / April 2005

Tip: Looking for answers? Try searching our database.

Update Query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris - 28 Apr 2005 18:50 GMT
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)
Jason Rice - 28 Apr 2005 19:14 GMT
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
> Hello All.
>
[quoted text clipped - 7 lines]
>
> So I'm looking for a query like UCASE([SName],4)
Ed Warren - 28 Apr 2005 21:29 GMT
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 ;)

> Hello All.
>
[quoted text clipped - 7 lines]
>
> So I'm looking for a query like UCASE([SName],4)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.