I need to run a query, the criteria for which, I hope to pass in from a string variable on a form.
i.e. I have a string variable e.g. 'ref1, ref2, ref3' (built up from a multiselect listbox) The query has a corresponding reference field. Can I set the criteria for the query using this variable? (it currently only works when the string contains a single item e.g. 'ref1').
I would prefer not to have to create a query on the fly if it can be avoided.
Thanks
i.e. I have a string variable e.g. 'ref1, ref2, ref3' (built up from a multiselect listbox) The query has a corresponding reference field. Can I set the criteria for the query using this variable? (it currently only works when the string contains a single item e.g. 'ref1').
I would prefer not to have to create a query on the fly if it can be avoided.
Thanks