Solved

How to concatenate address fields in Crystal Reports

Posted on 2013-02-07
3
632 Views
Last Modified: 2013-02-07
I have city, state, and zip code fields that are spaced too far apart on a report. I want to create a formula to keep them together and then select Can Grow option for the formula field. When I set my formula as this:
{InvoiceGen.Custcity}And{InvoiceGen.Custstate}And{InvoiceGen.Custzip}
there is an error "A boolean is required here." What is the correct syntax for this?
0
Comment
Question by:MashaCPA
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
vasto earned 500 total points
ID: 38865331
use + and add an empty space between the fields

{InvoiceGen.Custcity} + ' ' + {InvoiceGen.Custstate} + ' ' + {InvoiceGen.Custzip}
0
 
LVL 2

Author Closing Comment

by:MashaCPA
ID: 38865372
Perfect, thank you! I tried a similar formula as well but with "" instead of '', and there was a different error. Thanks for your help!
0
 
LVL 18

Expert Comment

by:vasto
ID: 38865397
You are Welcome!
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

770 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