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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to break apart string according to comma location 1

Status
Not open for further replies.

scauffiel

Programmer
Nov 14, 2001
9
US
Hey fellas, I'm simply trying to get a first and last name from a field whose data is separated by a comma. My field, {@Name}, shows up as "LastName, FirstName". I want to make it normal as this is for the 'Pay To' block for checks; "FirstName LastName".

I've been playing with LEFTs and RIGHTs and INSTRs all day and it's kicking my butt. Any ideas?

Steve
 
Depends upon your version of Crystal, try this:

split({table.field},",")[2]+" "+split({table.field},",")[1]

-k
 
DANG BROTHER!! You NAILED it!! Holy monkey! I'm gonna have to look up that whole split thing... Man, thanks very VERY much!!

You rock!

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top