F
FrankM
I have a Table with names. The names could have middle name or initals or
none. I need a Query to extract just the last name. I think this should be
fairly simple but I can't figure it out.
Examples of names:
John Smith
John T Smith
John Jacob Smith
John T Jacob Smith
For each of the examples above I need a Query just to grab the Smith part.
I started with this ...
LastName: Right([Name],Len([Name])-InStr(1,[Name]," "))
But it only removed the first name so "John T Smith" appeared as "T Smith";
when I really need just "Smith". I have a feeling I'm missing something
really simple.
Any assistance would be greatly appreciated.
none. I need a Query to extract just the last name. I think this should be
fairly simple but I can't figure it out.
Examples of names:
John Smith
John T Smith
John Jacob Smith
John T Jacob Smith
For each of the examples above I need a Query just to grab the Smith part.
I started with this ...
LastName: Right([Name],Len([Name])-InStr(1,[Name]," "))
But it only removed the first name so "John T Smith" appeared as "T Smith";
when I really need just "Smith". I have a feeling I'm missing something
really simple.
Any assistance would be greatly appreciated.