I have the following loop that will not exit when I test for multiple conditions. Here is the code
Do
Result = (InputBox("ESF or HSC (E or H)", "Select type of pump", "E"))
Loop While Result <> ("E" Or "H")
I have tried additional loop test variations such as
Loop While Result <> "E" or Result <> "H"
If I use only test case instead of two, it works okay.
I do no know what I am missing. Any help would be greatly appreciated.
Thanks,
Tom
Do
Result = (InputBox("ESF or HSC (E or H)", "Select type of pump", "E"))
Loop While Result <> ("E" Or "H")
I have tried additional loop test variations such as
Loop While Result <> "E" or Result <> "H"
If I use only test case instead of two, it works okay.
I do no know what I am missing. Any help would be greatly appreciated.
Thanks,
Tom