Hi -
I have a multiselect listbox that dumps its values out into a textbox in the form of a comma separated list. The values look like this:
'wv13Ce','Rja3SH','JifFZ1','VR0UHl'
I want to use those values to filter a query, like this:
SELECT * FROM table WHERE (field IN (Forms!myform!textbox))
This is not working, though. The query returns no results. If I explicitly state the values in the query, it works as expected, like this:
SELECT * FROM table WHERE (field IN ('wv13Ce','Rja3SH','JifFZ1','VR0UHl'))
I've tried wrapping the form field and its values in double quotes, single quotes, no quotes, but it doesn't seem to matter. If I'm referencing the value of the form field, the query doesn't work.
I can use VBA to rewrite the SQL of the query, but I'd like to avoid this if possible, as I have dozens of queries that need to do this (and I'm not sure how well this would work on a multi-user db).
Any ideas / suggestions?
Thanks,
Noah
https://www.experts-exchange.com/questions/22613609/Entering-Parameters-In-AN-ACCESS-Query.html?&anchorAnswerId=19217156#a19217156