I tried to search for an answer but the results were too broad and some of my words were excluded from the search because they were too common so I was not getting anywhere.
I have 2 questions:
First, I have a form set up where a user selects query criteria from a multi-select list box. My code takes the list box selections and concatenates them into a query criteria string, ie: In ("DOG", "CAT", "RABBIT") which I then store in a textbox.
When I reference this textbox from the criteria in my query [Forms]![SomeForm]![SomeTextBox] it does not work. Am I going about this the wrong way?
Second of all, I would like to change the criteria from In(), to Like * to find all records that contain the words in the list box selections (DOG, CAT, RABBIT...etc). Do I need to set up the criteria as Like "*DOG*" Or Like "*CAT*" Or Like "*RABBIT*" or is there a way to combine Like * with In ()?
Thanks for helping.
I have 2 questions:
First, I have a form set up where a user selects query criteria from a multi-select list box. My code takes the list box selections and concatenates them into a query criteria string, ie: In ("DOG", "CAT", "RABBIT") which I then store in a textbox.
When I reference this textbox from the criteria in my query [Forms]![SomeForm]![SomeTextBox] it does not work. Am I going about this the wrong way?
Second of all, I would like to change the criteria from In(), to Like * to find all records that contain the words in the list box selections (DOG, CAT, RABBIT...etc). Do I need to set up the criteria as Like "*DOG*" Or Like "*CAT*" Or Like "*RABBIT*" or is there a way to combine Like * with In ()?
Thanks for helping.
