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

Splitting Names 1

Status
Not open for further replies.

edmac2

Technical User
May 11, 2000
24
US
Crystal 6
I have a field that consists of names as McCormick Ed. How would I be able to make this into 2 fields say FirstName, LastName.Each Name has a space between first and last name or just be able to split it up so I could get the first name or the last name in another field.
 
Look up the InStr function in CR help. This will calc the numeric position of the space.

Then use this number to SubString the field into two fields.

Ken Hamady
Crystal Reports Training and a
Quick Reference Guide to VB/Crystal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top