Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Need help on how to concatenate fields Post Reply Post New Topic
Author Message
thuynh32
Newbie
Newbie


Joined: 09 Oct 2009
Location: United States
Online Status: Offline
Posts: 2
Quote thuynh32 Replybullet Topic: Need help on how to concatenate fields
    Posted: 09 Oct 2009 at 10:07am
Hello,
 
I am trying to concatenage 3 fields together: Location + Year + WONumber using following syntax:
 
{Location} & "-" &{ Year} & "-" & {WONumber}
 
Result: LOCATION1-2,009.00-377.00
 
Could you please help me on how to format to eliminate the separator(,) and decimal? so the result would look like this:
 
LOCATION1-2009-377
 
Thanks a million
 
Tuan
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 09 Oct 2009 at 10:57am
Try this:

{Location} & "-" &CStr({ Year},"#") & "-" & CStr({WONumber},"#")

HTH,

Brian
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
thuynh32
Newbie
Newbie


Joined: 09 Oct 2009
Location: United States
Online Status: Offline
Posts: 2
Quote thuynh32 Replybullet Posted: 12 Oct 2009 at 9:59am

IT WORKS!!! Thank you!!

Best Regards,
 
Tuan


Edited by thuynh32 - 12 Oct 2009 at 10:02am
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.031 seconds.