Converting First part of string to Proper

bearcub

Well-known Member
Joined
May 18, 2005
Messages
732
Office Version
  1. 365
  2. 2013
  3. 2010
  4. 2007
Platform
  1. Windows
I have a situation where I have a string with two words in it that are all upper case that I'm running in a query. I want to convert the first word to Proper Case but leave the Acronym as all caps.

For example, I have the Term "ALCOSTA SCC" but it should be "Alcosta SCC". I also have other terms like this that we're using but they vary in length so I need to use a dynamic function.

So, I created a nested formula trying to do this but I'm not really familiar with how Access would so this.

This is what I have:

Service_Center: StrConv(Left([scc],InStr(1,[SCC],"")),3)

I'm using the StrConv function to convert it to proper. However, I need to perform this operation on this term so I'm using the left function. The left function is locating the first "" to extract the first word. The query returns nothing when I run it which tells me that there is something wrong with my formula. The StrConv works because I tested it but the result is "Alcosta Scc" which isn't what I want.

Can you let me know what is wrong with my formula?

Thank you for your help in advance,

Michael
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
You do not appear to have a space between your double quotes?
You should be searching for the space to be able to locate the first word.?
 
Upvote 0
Ah, your right. There should be a space, thank you
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top