[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now


simple formula to make first letter of a name in caps

Posted on 2004-09-22
Medium Priority
Last Modified: 2010-05-18

how can i create a function where a name like  JHONES or  jHOnes     can become Jhones   so the first letter is in caps only.
Question by:gianitoo
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
LVL 28

Expert Comment

ID: 12127182
What version of Crystal are you using?

In version 9 or 10, there is a function called ProperCase that will do it for you.


If you have a version prior to 9, then try this:

Uppercase({table.name}[1]) & lowercase(mid({table.field},2))

Author Comment

ID: 12127198
i use 10
LVL 26

Expert Comment

by:Kurt Reinhardt
ID: 12127212
CR9 + uses the Propercase function.  if you have 8.5 or lower, you could create a formula similar to:

Uppercase(Left({table.field},1)) + Lowercase(Mid({table.field},2,Length(TrimRight({table.field}))))

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

LVL 26

Expert Comment

by:Kurt Reinhardt
ID: 12127268
bdreed35's formula is much more concise - i'm too old school:-).  If you're on 10, then you should use Propercase :-)
LVL 10

Expert Comment

ID: 12130604
hi rhinok

Question is where will the user add the formula in design mode..??
which property will reflect the changes, as per the above formula??
LVL 28

Accepted Solution

bdreed35 earned 2000 total points
ID: 12132215
You don't use the logic above in one of the properties of that name field, you create a new formula and use the logic there.

If you need step by step instructions on how to create this then here you go:

Open the Field Explorer, if it is not open already.  Chance are it is open already in 10 but if nit, go to View menu, Field Explorer.
Right click "Formulas", and select new.
Give it a name, possibly Name, and click the use Editor button.
In the editor, enter the logic we gave you:


You will need to swap {table.name} with the field that has your date in it.
Click Save and Close.
Lastly, drag the new Formula from the Field Explorer to your report canvas.  Place it where you want it displayed.

LVL 10

Expert Comment

ID: 12140072
hi bdreed35

thanx  for the comment above..

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question