I've searched the thread and found some examples of parsing names in a query, however, i'm receiving an error (invalid call procedure) when trying to parse out first, middle and last names.
Data sample:
Roger R Rabbit
Glenn Brown
I've used the following:
SELECT
strconv(Geneva.UsrName,3) AS GenevaUsr,
strconv(Right([UsrName],Len([UsrName])-InStrRev([UsrName]," ")),3) AS LastName,
strconv(Left([UsrName],Instr([UsrName]," ")-1),3) AS Firstname
From Geneva;
I cant figure out how to get the middle name to a separate field. Is there an IIF statement that is missing? Any help is appreciated.
Data sample:
Roger R Rabbit
Glenn Brown
I've used the following:
SELECT
strconv(Geneva.UsrName,3) AS GenevaUsr,
strconv(Right([UsrName],Len([UsrName])-InStrRev([UsrName]," ")),3) AS LastName,
strconv(Left([UsrName],Instr([UsrName]," ")-1),3) AS Firstname
From Geneva;
I cant figure out how to get the middle name to a separate field. Is there an IIF statement that is missing? Any help is appreciated.