M
Melanie O
I have two functions that separate a "first name" field, called FName,
consisting of either just a first name (Melanie), a first name and middle
initial (Melanie J), or a first name and middle name (Melanie Jean), into two
separate first name and middle name columns. The two functions are listed
here:
First Name: Left([FName],InStr([FName]," ")-1)
Middle Name: Mid([FName],InStr(1,[FName]," ")+1,Len([FName])-InStr([FName],"
"))
The problem I'm having is that if there is no middle initial or name
present, the first name function returns a #Error, and the real first name
shows up as the middle name. How can I adjust the two expressions above to
correctly show a first name without a middle name in the first name column?
For testing purposes, if there is no middle name, we can assign the initial
"X". Thanks for any help!
Melanie
consisting of either just a first name (Melanie), a first name and middle
initial (Melanie J), or a first name and middle name (Melanie Jean), into two
separate first name and middle name columns. The two functions are listed
here:
First Name: Left([FName],InStr([FName]," ")-1)
Middle Name: Mid([FName],InStr(1,[FName]," ")+1,Len([FName])-InStr([FName],"
"))
The problem I'm having is that if there is no middle initial or name
present, the first name function returns a #Error, and the real first name
shows up as the middle name. How can I adjust the two expressions above to
correctly show a first name without a middle name in the first name column?
For testing purposes, if there is no middle name, we can assign the initial
"X". Thanks for any help!
Melanie