What is IofSubStr ? Is it a variable? If so put a $ in front of it, if it is a UDF, you do not have it in your code.
_________________________
Today is the tomorrow you worried about yesterday.