I am wondering if this is possible as I can't seem to get it to work.
I am using Select Case to filter a form on open and it works fine when I have this:
But if I want the form to open filtering multiple employee records, like this:
I get a type mismatch error and I am stumped as to why and how to overcome. Any advice? Please?
I am using Select Case to filter a form on open and it works fine when I have this:
Code:
Case Is = 2
Forms![Open Opportunities List].Form.Filter = "[Employee] = 4"
Forms![Open Opportunities List].Form.FilterOn = True
Code:
Case Is = 6
Forms![Open Opportunities List].Form.Filter = "[Employee] = 2 & " And 9 & " And 10 & " And 11
Forms![Open Opportunities List].Form.FilterOn = True