Ucase(left(firstname,1))Lc
Main Topics
Browse All TopicsI have a MS Access DB with a column of data in all CAPS and I need it in Title case.
Suggestions?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Here is what I tried, but it failed. Is there a way to skip 3 letter abbreveations?
<cftransaction action="begin">
<cflock scope="session" timeout="30">
<cfset recordupdate = 1>
<cftry>
<cfquery name="updateState" datasource="datasource">
UPDATE tbl_Zipcodes Set City = StrConv([City],vbProperCas
</cfquery>
<cfcatch type="database">
<cfset recordupdate = 0>
</cfcatch>
</cftry>
<cfif recordupdate IS 1>
<cftransaction action="commit"/>
<!--- Success --->
SUCCESS: UPDATE COMPLETE:<br>
<!--- Return Page --->
<cfelse>
<cftransaction action="rollback"/>
<!--- Failure --->
ERROR: UPDATE FAILED:<br>
</cfif>
</cflock>
</cftransaction>
I continue to get an error:
Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
The error occurred in D:\Inetpub\wwwroot\website
3 : <cfset recordupdate = 1>
4 : <cftry>
5 : <cfquery name="updateCity" datasource="datasource">
6 : UPDATE tbl_Zipcodes Set City = iif(len(CITY) > 3,StrConv([City],vbProperC
7 : </cfquery>
SQL UPDATE tbl_Zipcodes Set City = iif(len(CITY) > 3,StrConv([City],vbProperC
DATASOURCE singlesscene
VENDORERRORCODE -3010
SQLSTATE 07002
Nope, stll getting errors, here is everything:
CODE:
<cftransaction action="begin">
<cflock scope="session" timeout="30">
<cfset recordupdate = 1>
<cftry>
<cfquery name="updateCities" datasource="datasource">
UPDATE tbl_Zipcodes Set City = iif(len(CITY) > 3,StrConv([City],vbProperC
</cfquery>
<cfcatch type="SHOWERROR">
<cfset recordupdate = 0>
</cfcatch>
</cftry>
<cfif recordupdate IS 1>
<cftransaction action="commit"/>
<!--- Success --->
SUCCESS: UPDATE COMPLETE:<br>
<!--- Return Page --->
<cfelse>
<cftransaction action="rollback"/>
<!--- Failure --->
ERROR: UPDATE FAILED:<br>
</cfif>
</cflock>
</cftransaction>
ERROR:
ODBC Error Code = 07001 (Wrong number of parameters)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
Hint: The cause of this error is usually that your query contains a reference to a field which does not exist. You should verify that the fields included in your query exist and that you have specified their names correctly.
SQL = "UPDATE tbl_Zipcodes Set City = iif(len(CITY) > 3,StrConv([City],vbProperC
Data Source = "Datasource"
The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (8:2) to (8:56) in the template file F:\website\utl\utl_updateC
Here is the source code for everyone:
NOTE: Replace CAPITALS with your values
<cftransaction action="begin">
<cflock scope="session" timeout="30">
<cfset recordupdate = 1>
<cftry>
<cfquery name="NAME" datasource="DATASOURCE">
Update TABLE Set COLUMN= iif(len(COLUMN) > 3,StrConv([COLUMN],3),[COL
</cfquery>
<cfcatch type="database">
<cfset recordupdate = 0>
</cfcatch>
</cftry>
<cfif recordupdate IS 1>
<cftransaction action="commit"/>
<!--- Success --->
Success: Update Complete:<br>
<!--- Return Page --->
<cfelse>
<cftransaction action="rollback"/>
<!--- Failure --->
Error: Update Failed:<br>
</cfif>
</cflock>
</cftransaction>
Business Accounts
Answer for Membership
by: CFDevHeadPosted on 2005-03-10 at 14:17:12ID: 13511581
for output or testing against case talize; ">MATT</font>
if you just want to change the case when you are displaying use this <font style="text-transform:capi
you can use lowercase or uppercase
or you can use this in your query
select lcase(firstname) from table