Split out and reverse a string (1 Viewer)

dcavaiani

Registered User.
Local time
Today, 01:52
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, 22:52
Joined
Mar 9, 2014
Messages
5,466
Right(x, InStr(x, " ")) & " " & Left(x, InStr(x, " "))
 

arnelgp

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

plog

Banishment Pending
Local time
Today, 01:52
Joined
May 11, 2011
Messages
11,638
James Van Der Beek
Oscar De La Hoya


You ok with those being these:

Beek James
Hoya Oscar
 

June7

AWF VIP
Local time
Yesterday, 22:52
Joined
Mar 9, 2014
Messages
5,466
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