DocNum is set as Double, I have numbers that when they fall into these buckets should trigger different code to be used. I'm having trouble identifying why it's only using the if stmt and not the elseif. The stmt returns true everytime...
Example: 1003xxxxx should return true and use the if stmt code, 1900xxxxxx should return false and use the elseif code. But 1900xxxxxx is using the if stmt code...
It's most likely the wildcard, but I was under the assumption that it would need to satisfy the previous numbers before assuming the remaining numbers.
If DocNum = "1003*" Or "1004*" Or "1005*" Then
'Some Code
ElseIf DocNum = "19*" Or "17*" Or "22*" Or "20*" Then
'Some Code