a If statement needs boolean expressions ( True or False)
and the AND or OR evaluate boolean expressions so if you write something like :
[tt]IF Textbox1 = "Report 1" or "Report 2" or "Report 3" Then [/tt]
the program assumes that "Report 2" and "Report 3" are boolean expression(but it's not the case) and that explain why you need to repeat the [tt]textbox1 = "..."[/tt]
jul ^_^
"Computer Science is no more about computers than astronomy is about telescopes"
E. W. Dijkstra.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.