We are running Timberline accounting package. Our employee names were enter last, first, M example (doe; John L) I need to plit this field in two three seperate fields. Was is the correct way to do this.
to get the last name, but seperating the first and middle will never be an exact science.
You can't look for the space because I assume sometimes there isn't a middle initial. That's fine, but there is a space befor the first name, which would cause problems. Also someone's first name could be Bobby Jo with no middle initial. If you took the value right of the space you would get Jo as a middle initial, which is incorrect.
I would break it into two fields...First/Middle and Last.
It says remaing text does not seem to be apart of the formula.
if ubound(split({MASTER_PRM_EMPLOYEE.Employee_Name}," ")) >= 2 then
split(split({MASTER_PRM_EMPLOYEE.Employee_Name},";")[2]," ")[1] else
split({MASTER_PRM_EMPLOYEE.Employee_Name},";")[2]
//{@middle}:
if ubound(split({MASTER_PRM_EMPLOYEE.Employee_Name}," ")) >= 2 then
split(split({MASTER_PRM_EMPLOYEE.Employee_Name},";")[2]," ")[2] else
""
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.