Can a SWITCH command return two or more values from a single comparison?
Ex: Switch([Field]=Val1, 1, [Field]=Val2, 2 or 3)
If I use QBE, I can put 1 or (2 OR 3) on the CriteriaLine depending on the value of Field and it will work fine. But how do I implement this using a Switch command.
I am trying to do this so that I can get criteria from a form and pass it to a report's datasource query.
Ex: Switch([Field]=Val1, 1, [Field]=Val2, 2 or 3)
If I use QBE, I can put 1 or (2 OR 3) on the CriteriaLine depending on the value of Field and it will work fine. But how do I implement this using a Switch command.
I am trying to do this so that I can get criteria from a form and pass it to a report's datasource query.