C
Crystal via AccessMonster.com
Hello,
I know that someone can do this easily with functions, but I just cannot seem
to figure this out. I need to separate last name and first name. I can do
last name but have trouble with first name. It has mid initial and other
strings attached. Here are my query and result:
LNM: Left([name],InStr([name],",")-1)
FNM: Mid([name],InStr([name],",")+2,InStr([name]," ")-1)
Source table:
Anew, Habit, MD
Anthony, Gold N., DO
Chen, Maria, LAC
Rotemowitz, Tryan L., MD
Clearani-Mullak, Ntooine H., MD
Here is the result:
Anew Habit
Anthony Gold N.,
Chen Maria
Rotemowitz Tryan L., M
Clearani-Mullak Ntooine H., MD
I need FNM to be FNM only and no other string attached. They should be as
Gold, Tryan, Ntooine, etc.
Thanks in advance for any help.
I know that someone can do this easily with functions, but I just cannot seem
to figure this out. I need to separate last name and first name. I can do
last name but have trouble with first name. It has mid initial and other
strings attached. Here are my query and result:
LNM: Left([name],InStr([name],",")-1)
FNM: Mid([name],InStr([name],",")+2,InStr([name]," ")-1)
Source table:
Anew, Habit, MD
Anthony, Gold N., DO
Chen, Maria, LAC
Rotemowitz, Tryan L., MD
Clearani-Mullak, Ntooine H., MD
Here is the result:
Anew Habit
Anthony Gold N.,
Chen Maria
Rotemowitz Tryan L., M
Clearani-Mullak Ntooine H., MD
I need FNM to be FNM only and no other string attached. They should be as
Gold, Tryan, Ntooine, etc.
Thanks in advance for any help.