Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: LEFT to comma Post Reply Post New Topic
Author Message
bwsanders
Senior Member
Senior Member


Joined: 05 Sep 2012
Location: United States
Online Status: Offline
Posts: 177
Quote bwsanders Replybullet Topic: LEFT to comma
     Posted: 04 Jun 2013 at 6:44am
I have a field that is lastname, first name and i'm looking to get just the last name out of it. is there a way that i can use LEFT and go until the comma?


any help would be great.

thank you !
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 04 Jun 2013 at 7:21am
I believe this will work for you. Left ({Name field}, instr({Name field}),",")-1)
IP IP Logged
bwsanders
Senior Member
Senior Member


Joined: 05 Sep 2012
Location: United States
Online Status: Offline
Posts: 177
Quote bwsanders Replybullet Posted: 04 Jun 2013 at 7:35am
it does. thanks. i actually stumbled across it on here after i posted this. google always has a way of getting me through the day.

thanks again.
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