Solved

Formula field to concatenate data in Crystal Report?

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

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

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…
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 …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

730 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