Hi All,
I am working on a report which has some non standards data. Suppose I should put out everyone’s first name, last name and middle name, but for some people, they have these three fields empty, then I need to get their name from the full name field. Since it is required to put comma in between, that is why I am using the separate fields. But the problem is that I don’t know in the full name filed how many string it will be. It could be only one, like a company’s name,like "AutoOne", it could be two or three, like "Mary Line", "Mike J Stone". If it is one, I’ll use it as last name, if it is two, I’ll use first one as first name, second one as last name…etc. I try to use split(), but can’t make it work.
Do you have any idea how to make it work?
Thanks a lot for any help!!!
I am working on a report which has some non standards data. Suppose I should put out everyone’s first name, last name and middle name, but for some people, they have these three fields empty, then I need to get their name from the full name field. Since it is required to put comma in between, that is why I am using the separate fields. But the problem is that I don’t know in the full name filed how many string it will be. It could be only one, like a company’s name,like "AutoOne", it could be two or three, like "Mary Line", "Mike J Stone". If it is one, I’ll use it as last name, if it is two, I’ll use first one as first name, second one as last name…etc. I try to use split(), but can’t make it work.
Do you have any idea how to make it work?
Thanks a lot for any help!!!