G
Guest
The following condition isn't doing what I intend
What could be the problem?
I want to see if the file_num 2nd character should be
between a thru' z or '-'
The following statment checks for a thru' z correct, however
it doesn't do the check for '-' even if I enter '-',
it errors out.
....
ElseIf Mid(FILE_NUM, 2, 1) < "A" Or
Mid(FILE_NUM, 2, 1) > "Z" Or
Mid(FILE_NUM, 2, 1) <> "-" Then
Msgbox ("Error")
.....
Thanks for your help!
-M
What could be the problem?
I want to see if the file_num 2nd character should be
between a thru' z or '-'
The following statment checks for a thru' z correct, however
it doesn't do the check for '-' even if I enter '-',
it errors out.
....
ElseIf Mid(FILE_NUM, 2, 1) < "A" Or
Mid(FILE_NUM, 2, 1) > "Z" Or
Mid(FILE_NUM, 2, 1) <> "-" Then
Msgbox ("Error")
.....
Thanks for your help!
-M