• Hi,

    this is my first reply - wow !

    set @charpos = charindex('and',@SearchTerm) instead of

    set @charpos = charindex(@SearchTerm,'and')