Split out and reverse a string

dcavaiani

Registered User.
Local time
Today, 15:33
Joined
May 26, 2014
Messages
385
“John and Mary Jones” s/b “Jones John”

“Jim & Bob & Mary Jones” s/b “Jones Jim”
 
Right(x, InStr(x, " ")) & " " & Left(x, InStr(x, " "))
 
Mid([FieldName], InstrRev([FieldName], " ") + 1) & " " & Left([FieldName], Instr([FieldName], " ") - 1)
 
James Van Der Beek
Oscar De La Hoya


You ok with those being these:

Beek James
Hoya Oscar
 
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

Back
Top Bottom