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

Need help on breaking a Full name into First Name, Last Name

Status
Not open for further replies.
Apr 18, 2007
209
US
Frieds I have a field Firstname,Lastname i like write a formula to break it into First Name and Last Name as two separate fields. Thanks in advance for your time and help.
Toby.
 
Create two formulas:

//{@oneofthenames}:
stringvar x := {table.fullname};
split(x,",")[1]

//{@theothername}:
stringvar x := {table.fullname};
if ubound(split(x,",")) >= 2 then
split(x,",")[2] else
x

Usually, a name field with a comma is "LastName,FirstName".

-LB
 
LB thanks so much, it works like Charm!!!, thanks so much for your time
Tob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top