I have a TEXT string "Elapsed time 609ms" called 'Field4'
I first find the 'ms' with - Loc1: InStr([field4],"ms") ... this returns 17, the beginning location of where the search characters are.
I have a column
IsNum2: IIf(Val(Mid([Field4],[Loc1]-2,1))=0,'no','yes') which is saying ... Does the Value of Location 17-2 = 0 ... which should be 'yes'.
When I would expect the IIF statement to say 'yes' - meaning '0' is a number, it does not. It comes back equating to the 'no' side of the IIF.
The 6 and the 9 are found as 'yes' though.
Why does '0' not equal '0' as a digit?