R
RW
I have a form for running queries that has a field called Exclude. Users need
to be able to type in numbers separated by commas that they do not want to be
included in the query results. In the query, I added the criteria Not In
(Forms!FormName!Exclude). However, the data from the Form appears to be sent
as a literal - not as multiple numbers. In other words, if they enter 250,251
then two hundred fifty thousand and two hundred fifty one is passed instead
of 250 and 251. The field in the table is a number field.
I also tried to pass the entire criteria as Not In (250,251) and it is seen
as text and gives a Data Mismatch since the field is a number.
How can I get this to work?
to be able to type in numbers separated by commas that they do not want to be
included in the query results. In the query, I added the criteria Not In
(Forms!FormName!Exclude). However, the data from the Form appears to be sent
as a literal - not as multiple numbers. In other words, if they enter 250,251
then two hundred fifty thousand and two hundred fifty one is passed instead
of 250 and 251. The field in the table is a number field.
I also tried to pass the entire criteria as Not In (250,251) and it is seen
as text and gives a Data Mismatch since the field is a number.
How can I get this to work?