I think so, but you would only be able to pass a fixed number of parameters. e.g. ... WHERE Item IN (Param1, Param2, Param3).
To get the flexibility you would not be able to save a query, but you could generate the statement on the fly e.g. Me.RecordSource = "SELECT * FROM MyTable WHERE Item IN (" & Me.txtParams & "" - where txtParams contains your list of parameters separated by commas (and individually enclosed in single quotes if using strings). You could also use the part after 'WHERE' as your criteria parameter when opening a form.
You will lose a little performance as the query cannot be saved in an optimised state, but more than make up for it in flexibility.
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.