G
Guest
I'm trying to use the IN operator and I having trouble.
I am getting a list of numeric values from a form and using it in a query as
follows:
In ([Forms]![menu_reports]![txtTradeCodes])
If the text box on my form has only 1 value in it it works fine. If it has
more than one value like 1,2,3 my query returns nothing.
If I type In (1,2,3) directly into my query I get back about 100 records.
I've tried about a dozen combinations of double quotes and single quotes
around the digits and around the whole thing and placed the entire IN clause
in the text box but nothing works.
Any help greatly appreciated.
I am getting a list of numeric values from a form and using it in a query as
follows:
In ([Forms]![menu_reports]![txtTradeCodes])
If the text box on my form has only 1 value in it it works fine. If it has
more than one value like 1,2,3 my query returns nothing.
If I type In (1,2,3) directly into my query I get back about 100 records.
I've tried about a dozen combinations of double quotes and single quotes
around the digits and around the whole thing and placed the entire IN clause
in the text box but nothing works.
Any help greatly appreciated.