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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|