Solved

Simple text field question

Posted on 2013-10-29
6
288 Views
Last Modified: 2013-10-29
Hi, I haven't used CR for years and have completely forgotten how to do this.

I have a field on the report which prints a user ID.
This at the moment just dumps first initial and surname like as it is stored in the DB e.g. "auser"

Instead, I would like it to display "A User"

Thanks.
0
Comment
Question by:scribla
[X]
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
  • 3
  • 2
6 Comments
 
LVL 8

Expert Comment

by:5teveo
ID: 39608616
Try somehting like this...

I used string... just alter to variable of type string
 
Uppercase(Left('auser',1)) + ' ' + Propercase(Right('auser',length('auser')-1))
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 39608627
What version of Crystal?

As I recall ProperCase was added in the newer versions so you may have to do this as

Uppercase(Left({YourField},1)) + ' ' + Upppercase(Mid({YourField},2,1))  + Mid({YourField},3)

mlmcc
0
 
LVL 2

Author Comment

by:scribla
ID: 39608648
Ok, I need a little help here.
At the moment it looks like a text box called "Approver" when I hover on it it says "UDEF_PR_NARRATIVE.Approver (String)"

So to do the above, would I right click that box > format field, and on the Common Tab, click on the X-2 box in the section at the bottom that says "Display String" ?
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

 
LVL 2

Author Comment

by:scribla
ID: 39608650
Oh sorry CRv10 btw.
0
 
LVL 8

Accepted Solution

by:
5teveo earned 500 total points
ID: 39608677
Create a new formula Field and name it 'Approver' - (any name will do) then

Add formula below.... afterwards drop this formula on report.

Uppercase(Left({UDEF_PR_NARRATIVE.Approver},1)) + ' ' + Propercase(Right({UDEF_PR_NARRATIVE.Approver},length({UDEF_PR_NARRATIVE.Approver})-1))
0
 
LVL 2

Author Closing Comment

by:scribla
ID: 39608784
Perfect, bang on!

Thanks.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

707 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