lauriesamh
Technical User
Hi,
I have in table two fields First Name (FNAME) and Middle Initial (MI). In some case the MI is populated. When it is not then the true middle initial is occasionally typed in FNAME with a space " " then the Middle initial example:"Jane M". I want to pull the "M" and place it into a new field (MI corrected). This is what I'm using below. My problem is that when the (MI) is not populated and the FNAME has no middle initial the new (MI Corrected) field populates what is in the FNAME. Any assistance would be appreciated.
MI Corrected: IIf([Member Middle Name] Is Null,Right([Member First Name],Len([Member First Name])-InStrRev([Member First Name]," ",-1)),[Member Middle Name])
I have in table two fields First Name (FNAME) and Middle Initial (MI). In some case the MI is populated. When it is not then the true middle initial is occasionally typed in FNAME with a space " " then the Middle initial example:"Jane M". I want to pull the "M" and place it into a new field (MI corrected). This is what I'm using below. My problem is that when the (MI) is not populated and the FNAME has no middle initial the new (MI Corrected) field populates what is in the FNAME. Any assistance would be appreciated.
MI Corrected: IIf([Member Middle Name] Is Null,Right([Member First Name],Len([Member First Name])-InStrRev([Member First Name]," ",-1)),[Member Middle Name])