Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

concatenating strings in crystal reports 1

Status
Not open for further replies.

DavidSherring

Technical User
Nov 9, 2007
17
GB
I am trying to concatenate two strings, with a comma and space in the middle. If one of these fields is a blank or null, then the whole string doesn't print. I have never come across this before. Anyone help, sorry it is such a pathetic question.

{VENUES.VENUE_NAME} +", "+ {VENUES.LOCATION}

Thanks

David
 
Set up the formula like this:


(
if isnull({VENUES.VENUE_NAME}) then
"" else
{VENUES.VENUE_NAME}
)+
(
if not isnull({VENUES.VENUE_NAME}) and
not isnull({VENUES.LOCATION}) then
", "
) +
(
if isnull({VENUES.LOCATION}) then
"" else
{VENUES.LOCATION}
)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top