Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have a FullName feild where the names are formatted as follows:
Crab, Peter
On load I want to split this feild into two, one called FirstName and the other called SecondName.
Thanks
JB
I would do it this way:
subfield(NAME,',',1) as SecondName, trim(subfield(NAME,',',2)) as FirstName
Hi JB,
You can use;
For First Name --> Left(Field1,Index(Field1,',')-1)
For Last Name --> Mid(Field1,Index(Field1,',')+1,Len(Field1)-Index(Field1,','))
Here "Field1" is your "Name Field"
Regards
Rajesh
I would do it this way:
subfield(NAME,',',1) as SecondName, trim(subfield(NAME,',',2)) as FirstName
Subfeild worked a treat, thank you!
JB