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!

Changing order in field

Status
Not open for further replies.

iansmithwolves

Technical User
Jan 24, 2003
53
GB
I have a field with user name in (surname,first name) format. Is there a formula which will change it to (firstname, surname) format

Ian Smith
Wolves
England
 
Try:

if ubound(split({table.field},",")) > 1 then
trim(split({table.field},",")[2])&", "&trim(split({table.field}," ")[1])
else
{table.field}

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top