Good morning:
I'd like to get some assistance with tweaking an existing VBA function which would allow me to pass *multiple* listbox items into a stored query.
Current Process:
- Forms by default
- Listbox = multi-select; either drag across items OR hold CTRL key to select non-consecutive items
- Click on command button "Open Query"
- Now, regardless of how many items/values were selected in the listbox, the query currently outputs only the last selected value
What I Need Instead:
- Modify the existing VBA so that I created a string of values in my query criteria (via the IN method)
- For instance, if I were to select {mail, auth, syslog, ftp}, I then would want to send *In ('mail','auth','syslog','ftp')* into the query's criteria
How does the VBA need to be modified to achieve the envisioned outcome?
Thank you,
EEH
P.S. Please see attached sample ACCDB