D
Dale Fye
A2K, on Win XP.
Whenever I try to use a reference to a column of a listbox in the criteria
of a query, I get an error that Access cannot interpret the value. I have
tried making it a parmeter in the query, but without success. I usually
just end up writing code to define the SQL with the actual values from the
columns, then setting the querys sql property to this text string, then
requerying the control that contains these values.
Does anyone know of another way to write a query that looks similiar to the
following, and get it to work.
SELECT * FROM myTable where myTable.ID = Forms!myForm.list_myList.column(2)
Thanks!
Dale
Whenever I try to use a reference to a column of a listbox in the criteria
of a query, I get an error that Access cannot interpret the value. I have
tried making it a parmeter in the query, but without success. I usually
just end up writing code to define the SQL with the actual values from the
columns, then setting the querys sql property to this text string, then
requerying the control that contains these values.
Does anyone know of another way to write a query that looks similiar to the
following, and get it to work.
SELECT * FROM myTable where myTable.ID = Forms!myForm.list_myList.column(2)
Thanks!
Dale