Bean Machine
Member
- Local time
- Today, 10:32
- Joined
- Feb 6, 2020
- Messages
- 102
Hi All,
So I am unsure how I should start this question off, but I am having trouble with handling null values from a listbox. I want the query to check what value is stored in the lsitbox and then only show results for that value. In the past I have used a "janky" method as seen here: Like "*" & [Forms]![frm_PLIS]![lst_AttS] & "*". This method will not work with my listbox, however, as using Like "*" and having the listbox value as "1" would present me with values for "1", "11" and so on. I would prefer not to use an or statement as that has presented me with issues in the past. Any support would be great. Attached is an example of the listbox values and an example of the current way I am trying to get it to work.
So I am unsure how I should start this question off, but I am having trouble with handling null values from a listbox. I want the query to check what value is stored in the lsitbox and then only show results for that value. In the past I have used a "janky" method as seen here: Like "*" & [Forms]![frm_PLIS]![lst_AttS] & "*". This method will not work with my listbox, however, as using Like "*" and having the listbox value as "1" would present me with values for "1", "11" and so on. I would prefer not to use an or statement as that has presented me with issues in the past. Any support would be great. Attached is an example of the listbox values and an example of the current way I am trying to get it to work.