I need help populating a value from a single field into 2 fields in Crystal Reports 10

Hi Experts,
I have a NAME column in my data source for my  Crystal Reports 10, which contains the First and Last Name.
I want to split this value into 2 columns a First Name and a Last Name column.  How can I do this?

Thank you very much in advance,
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Assuming there is a space or other character between the names

Create 2 forumlas

Name - FirstName
Split({YourField},' ')[1]

Name - LastName
Split({YourField},' ')[2]

If the name could be NULL or not have 2 names then you need to handle that
First Name
If IsNull({YourField}) then
   ' '
   Split({YourField},' ')[1]

If there might only be 1 name

LastName formula
If IsNull({YourField}) OR UBound(Split({YourField}) = 1 then
   ' '
   Split({YourField},' ')[2]


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
If your field _only_ contains a first name and last name, then mlmcc's suggestions should work.  But if the field could contain something more, like "John Smith Jr" or "John Q. Smith", then things get more complicated.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.