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

Capitalizing first letter of data in a query



 
 
Thread Tools Display Modes
  #1  
Old July 7th, 2009, 04:50 PM posted to microsoft.public.access
Sarah at DaVita
external usenet poster
 
Posts: 90
Default Capitalizing first letter of data in a query

I have a query that creates a table. Some of the data contains all caps. I
would like to have the first letter of each word capitalized - CENTRAL
DIALYSIS CENTER would become Central Dialysis Center. I can do this in SQL
using the initcap function. I tried this in the SQL view of the query but it
was not recognized. Can someone help me with this?
  #2  
Old July 7th, 2009, 05:17 PM posted to microsoft.public.access
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Capitalizing first letter of data in a query

Use the StrConv function. Since you're running in a query, you must provide
the value for the conversion factor (3) as opposed to using the named
constant (vbProperCase)

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


"Sarah at DaVita" .(donotspam) wrote in message
...
I have a query that creates a table. Some of the data contains all caps.
I
would like to have the first letter of each word capitalized - CENTRAL
DIALYSIS CENTER would become Central Dialysis Center. I can do this in
SQL
using the initcap function. I tried this in the SQL view of the query but
it
was not recognized. Can someone help me with this?



 




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:45 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.