Hi everyone,
Sorry if this is a bit of a simple question but I just want to understand exactly how the "Instr" function works.
So in my scenario I want to extra the first letter of someone's surname and I actually manage to get it to work using the code below.
However, what I want to know is why it produces an error if "+1" is omitted?
Thanks again. (Apologies, I know this is a basic one)
Sorry if this is a bit of a simple question but I just want to understand exactly how the "Instr" function works.
So in my scenario I want to extra the first letter of someone's surname and I actually manage to get it to work using the code below.
Code:
initial2: Mid([FullName],InStr([FullName]," ")+1,1)
However, what I want to know is why it produces an error if "+1" is omitted?
Thanks again. (Apologies, I know this is a basic one)