Hmm, don't know why I did all that crap.
replace the whole if then ..else with this
    For i = 1 To Len(sInvalidChars)
            If InStr(sValidate, Mid(sInvalidChars, i, 1)) > 0 _
                  Then bTemp = True
            If bTemp Then Exit For
    Next
        For i = 1 To Len(sValidate)
            If Asc(Mid(sValidate, i, 1)) = 160 _
                   Then bTemp = True
            If bTemp Then Exit For
        Next    
it doesn't need all that.
Edited by - huwr on 25 July 2001  05:45:28