M
Mo
The problem is how to extract initials from firstnames that look like 'BETTY
ANNE MARY'.
I need the data in two fields so that it looks like this: 'BETTY' 'A M'.
Now it's fairly easy to get 'BETTY' with the following:
'IIf(InStr([forenames],"
")=0,[forenames],Left([forenames],InStr([forenames]," ")-1))'.
It's also not too much of a problem to get the 'A' from 'ANNE' if I do the
following: 'IIf(InStr([forenames]," "),Mid([forenames],InStr([forenames],"
")+1),"")'. Then I can use Left([middlename], 1) to give me 'A'.
I'm just stumped on the last part - how to get the 'A M'.
Can anyone help?
TIA
ANNE MARY'.
I need the data in two fields so that it looks like this: 'BETTY' 'A M'.
Now it's fairly easy to get 'BETTY' with the following:
'IIf(InStr([forenames],"
")=0,[forenames],Left([forenames],InStr([forenames]," ")-1))'.
It's also not too much of a problem to get the 'A' from 'ANNE' if I do the
following: 'IIf(InStr([forenames]," "),Mid([forenames],InStr([forenames],"
")+1),"")'. Then I can use Left([middlename], 1) to give me 'A'.
I'm just stumped on the last part - how to get the 'A M'.
Can anyone help?
TIA