T
thorn2fish
I am having a problem where I get empty query results using a multi-select
listbox as a parameter to a query. I have coded a MS Access form to feed the
multi-select entries as a parameter to a MS Access Query Object. The two
objects on the form are the multi-select listbox and a button to execute the
query. Yes, I am leaving the form open.
Here is the query "Query2":
SELECT Table1.System, Table1.Size
FROM Table1
WHERE Table1.System In ([Forms]![Form1]![System]);
Here is the EventClick expression from the button on the form:
Private Sub Command3_Click()
DoCmd.OpenQuery "Query2"
End Sub
Where "System" is the name of the multi-value list box from "Form1".
I thought this mirrored the example I saw, but it isn't working. Does
anyone see the obvious?
Thanks!
listbox as a parameter to a query. I have coded a MS Access form to feed the
multi-select entries as a parameter to a MS Access Query Object. The two
objects on the form are the multi-select listbox and a button to execute the
query. Yes, I am leaving the form open.
Here is the query "Query2":
SELECT Table1.System, Table1.Size
FROM Table1
WHERE Table1.System In ([Forms]![Form1]![System]);
Here is the EventClick expression from the button on the form:
Private Sub Command3_Click()
DoCmd.OpenQuery "Query2"
End Sub
Where "System" is the name of the multi-value list box from "Form1".
I thought this mirrored the example I saw, but it isn't working. Does
anyone see the obvious?
Thanks!