Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Change upper case to sentence case

106 views
Skip to first unread message

EllenM

unread,
Jan 23, 2009, 7:10:02 PM1/23/09
to
Hello,
The names of my church's ushers are all in upper case in the table. How can
I have them appear in title case in the report?

Thanks in advance,
Ellen

fredg

unread,
Jan 23, 2009, 7:21:38 PM1/23/09
to

Just for display?
=StrConv([UsherName])

Unfortunately, this will improperly capitalize some names that ought
to have more than one capital, McDonald, O'Brien, Smith-Jones, etc.
and also improperly capitalize some names that ought not be
capitalized, van den Steen.
A work around could be a table of exceptions that can be 'DLookUp'ed
and a choice of spelling offered.


Permanently?
Run an Update Query.
Update YourTable Set YourTable.UsherName = StrConv([UsherName])
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

Allen Browne

unread,
Jan 23, 2009, 7:22:42 PM1/23/09
to
Assuming your field is named FullName, set the Control Source of the text
box on your report to:
= StrConv([FullName], 3)

Change the text box's Name property as well: Access gets confused if a
control has the same name as a field, but is bound to somthing else.

You will probably find this doesn't work very well, e.g McDonald may not be
happy.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"EllenM" <Ell...@discussions.microsoft.com> wrote in message
news:FCF75E31-90B9-441B...@microsoft.com...

EllenM

unread,
Jan 24, 2009, 9:04:00 AM1/24/09
to
Thanks so much!!! It worked even though the name was a concatenation,
namely, "=StrConv([First Name] & " " & [Middle Initial] & " " & [Last
Name],3)". Sounds like I need to convert them in an update query so I can
handle the names like McDonald individually.

24hr...@gmail.com

unread,
Mar 5, 2013, 2:55:26 PM3/5/13
to
Hey, I have a question about this. Where did you put the code?
0 new messages