CW , because it corresponds to a hypothetical example, but hardly in a real situation. Like , however, is a good keyword to know.
If userID Like "[1-6]" Then
This is normal for unambiguous checks, but not for different personal user identifiers.
i.e.
userID = 1 If userID Like "[1-6]" Then ' result is True
but
userID = 11 If userID Like "[1-6]" Then ' result is False
Gaffi
source share