Split out and reverse a string (1 Viewer)

dcavaiani

Registered User.
Local time
Yesterday, 18:19
Joined
May 26, 2014
Messages
385
“John and Mary Jones” s/b “Jones John”

“Jim & Bob & Mary Jones” s/b “Jones Jim”
 

June7

AWF VIP
Local time
Yesterday, 15:19
Joined
Mar 9, 2014
Messages
5,470
Right(x, InStr(x, " ")) & " " & Left(x, InStr(x, " "))
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 07:19
Joined
May 7, 2009
Messages
19,242
Mid([FieldName], InstrRev([FieldName], " ") + 1) & " " & Left([FieldName], Instr([FieldName], " ") - 1)
 

plog

Banishment Pending
Local time
Yesterday, 18:19
Joined
May 11, 2011
Messages
11,646
James Van Der Beek
Oscar De La Hoya


You ok with those being these:

Beek James
Hoya Oscar
 

June7

AWF VIP
Local time
Yesterday, 15:19
Joined
Mar 9, 2014
Messages
5,470
Consistency in structure is critical with string manipulation. Names are far from being consistent in structure. This is why name parts should be saved into separate fields.
 

Users who are viewing this thread

Top Bottom