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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

LCase? Title Case?



 
 
Thread Tools Display Modes
  #1  
Old January 7th, 2009, 07:16 PM posted to microsoft.public.access.gettingstarted
Bre-x[_2_]
external usenet poster
 
Posts: 30
Default LCase? Title Case?

Is there a way to change: GEORGE BUSH to George Bush ??


Thank you all

Bre-x


  #2  
Old January 7th, 2009, 07:29 PM posted to microsoft.public.access.gettingstarted
John Spencer (MVP)
external usenet poster
 
Posts: 217
Default LCase? Title Case?

The VBA expression would be

StrConv("GEORGE BUSH",3)

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County

Bre-x wrote:
Is there a way to change: GEORGE BUSH to George Bush ??


Thank you all

Bre-x


  #3  
Old January 7th, 2009, 08:00 PM posted to microsoft.public.access.gettingstarted
fredg
external usenet poster
 
Posts: 4,386
Default LCase? Title Case?

On Wed, 7 Jan 2009 12:16:55 -0700, Bre-x wrote:

Is there a way to change: GEORGE BUSH to George Bush ??

Thank you all

Bre-x


Perhaps changing it to george bush would be more appropriate!
Sorry, I couldn't resist. :-)

On the Form's control's AfterUpdate event code:
Me![ControlName] = StrConv([ControlName],3)

Note: this will incorrectly capitalize some words which contain more
than one capital, i.e. O'Brien, MacDonald, IBM, Jones-Smith, ABC,
etc., and incorrectly capitalize some words that should not have any
capitals, or whose capitalization depends upon usage, such as e. e.
cummings, abc, van den Steen.
Then some names can be capitalized in more than one manner, depending
upon personal preference, i.e. O'Connor and O'connor, McDaniels and
Mcdaniels, etc. are all correct.

You can create a table of exceptions and have the code use DLookUp
with a message if one of the exception words is found.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
  #4  
Old January 7th, 2009, 10:05 PM posted to microsoft.public.access.gettingstarted
Bre-x[_2_]
external usenet poster
 
Posts: 30
Default LCase? Title Case?

Thank you, it works very well

"Bre-x" wrote in message
...
Is there a way to change: GEORGE BUSH to George Bush ??


Thank you all

Bre-x



 




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 04:25 PM.


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