A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Changing UPPER to Proper Case



 
 
Thread Tools Display Modes
  #1  
Old July 11th, 2009, 09:28 AM posted to microsoft.public.access.queries
FmEdit
external usenet poster
 
Posts: 4
Default Changing UPPER to Proper Case

Hi,

Using Office 2007 with SP2

In a query I use the function: Strconv([Customer],3) for converting
upper to proper case

Only snag is:

RED LION 49/SOLID STATE LOGIC comes out as Red Lion 49/solid State
Logic

Anything with a / or - before the word is not converted to proper case

Any ideas ?

In Excel using the Application.Proper function gives me exactly what I
need but would prefer this to be done in Access

TIA

Raymond
  #2  
Old July 11th, 2009, 09:55 AM posted to microsoft.public.access.queries
PieterLinden via AccessMonster.com
external usenet poster
 
Posts: 307
Default Changing UPPER to Proper Case

FmEdit wrote:
Hi,

Using Office 2007 with SP2

In a query I use the function: Strconv([Customer],3) for converting
upper to proper case

Only snag is:

RED LION 49/SOLID STATE LOGIC comes out as Red Lion 49/solid State
Logic

Anything with a / or - before the word is not converted to proper case

Any ideas ?

In Excel using the Application.Proper function gives me exactly what I
need but would prefer this to be done in Access

TIA

Raymond


Convert the "/" to something like spacebackslashspace then do the
conversion with StrConv and then run the replace again to make
spacebackslashspace back into backslash.

Isn't Access FUN?

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/200907/1

  #3  
Old July 11th, 2009, 02:01 PM posted to microsoft.public.access.queries
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Changing UPPER to Proper Case

"PieterLinden via AccessMonster.com" u49887@uwe wrote in message
news:98e7f8e681f94@uwe...
FmEdit wrote:
Hi,

Using Office 2007 with SP2

In a query I use the function: Strconv([Customer],3) for converting
upper to proper case

Only snag is:

RED LION 49/SOLID STATE LOGIC comes out as Red Lion 49/solid State
Logic

Anything with a / or - before the word is not converted to proper case


Convert the "/" to something like spacebackslashspace then do the
conversion with StrConv and then run the replace again to make
spacebackslashspace back into backslash.


In other words,

Replace(Replace(UCase(Replace(Replace([Customer], "/", " / "), "-", " - "),
3), " / ", "/"), " - ", "-")


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:51 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.