Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Help: Space between strings? Post Reply Post New Topic
Author Message
Nav522
Senior Member
Senior Member


Joined: 25 Aug 2009
Location: United States
Online Status: Offline
Posts: 166
Quote Nav522 Replybullet Topic: Help: Space between strings?
     Posted: 31 Mar 2010 at 2:57am
Hello Folks,
                    I have a report with 2 fields firstname and lastname in it. I have used '&' and created a formula for concatenating firstname and lastname. But my problem is i should space in between them.How would i get that done? Any thoughts about this.
 
Thanks
IP IP Logged
saoco77
Senior Member
Senior Member


Joined: 26 Jun 2007
Online Status: Offline
Posts: 104
Quote saoco77 Replybullet Posted: 31 Mar 2010 at 3:37am
Create a formula

{table.field1} + " " + {table.field2)

IP IP Logged
Nav522
Senior Member
Senior Member


Joined: 25 Aug 2009
Location: United States
Online Status: Offline
Posts: 166
Quote Nav522 Replybullet Posted: 31 Mar 2010 at 3:55am
Thank you
IP IP Logged
chris
Newbie
Newbie


Joined: 02 Apr 2008
Location: United Kingdom
Online Status: Offline
Posts: 35
Quote chris Replybullet Posted: 31 Mar 2010 at 4:12am
Depending on the quality of your dataset, there could be a chance that the formula would not work if either the forename or surname is blank (unless you amend your formula to deal with blanks).
 
I find it easier to use a text box and drag the fields I need into it. Then just use the space bar to add the space needed.
 
Chris
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum