Solved

Formula field to concatenate data in Crystal Report?

Posted on 2008-06-12
3
903 Views
Last Modified: 2008-06-12
Hi, I'm making a crystal report and I have two data fields, "Plan Number" which is something like "001-223" and "Plan Revision" which is something like 1 or 2.  I'd like to create a single text item on my page header (there is only one record supplied to my report) that is formatted something like

"Project Plan No. 001-223, Rev. 2"

is there a way to do this?  What element do I use?  A text box doesn't seem to support this, and a formula field doesn't seem to work either.  

Thanks in advance.
0
Comment
Question by:riceman0
3 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 21771444
A formula field should be OK.


Whileprintingrecords;
"Project Plan No. " & {table.Plan Number} & ", Rev. " & {table.Plan Revision}
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 21771685
Looks good.

You may also be able to do this with a simple text box
Create a text box with "Project Plan No. " as the text
Drag the {table.Plan Number} field into the text box
Click the text box so you can edit the contents (may take a click to select and another to enter edit mode)
Add ", Rev. "
Drag the {table.Plan Revision} field into the text box.

mlmcc
0
 

Author Comment

by:riceman0
ID: 21771691

Oh, was using the wizard and didn't see the database fields  Great, thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Crystal Report Error 14 72
Crystal Reports Formula Field 17 64
Crystal Report formula to only return whole number from decimal 14 146
Crystal Reports - Trim Data 7 40
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. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

932 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now