Solved

Formula field to concatenate data in Crystal Report?

Posted on 2008-06-12
3
901 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 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