OK...
I'm trying to builder a querier for someone who doesn't know Access. They select states from a list box, which populated the states "code" into a text box (like this: 1,2,3,6,30) That writes to a table. Now, those numbers need to serve as the criteria for my query. I've tried some ways of doing it so far:
In([StateCode]) -- but that produced a data type mismatch The criteria is querying a number field, and the aforementioned code produced In("1,2,3,6,30"
"In(" & [StateCode] & "
" -- but that too produced a datatype mismatch.
I'm not sure what to try next. The number of values has to be dynamic, so I can think of a way to do it other thatn that. Any ideas?
--Timo
I'm trying to builder a querier for someone who doesn't know Access. They select states from a list box, which populated the states "code" into a text box (like this: 1,2,3,6,30) That writes to a table. Now, those numbers need to serve as the criteria for my query. I've tried some ways of doing it so far:
In([StateCode]) -- but that produced a data type mismatch The criteria is querying a number field, and the aforementioned code produced In("1,2,3,6,30"
"In(" & [StateCode] & "
I'm not sure what to try next. The number of values has to be dynamic, so I can think of a way to do it other thatn that. Any ideas?
--Timo