C
Chuck
A97, One Table (Table1), Field to be filtered is a three character text file
named Abc.
Form1 has a Listbox named ctla and a Textbox named Texta.
Listbox gets values of Abc from a query of Table1 showing field Abc, group by
and Abc, count.
If I hard wire the criteria for field Abc to AAA, the query runs correctly.
If I hard wire the criteria for field Abc to "AAA", the query does not return
any data. Note the quotes.
If I hard wire the criteria for field Abc to "AAA" Or "BBB", the query runs
correctly. Note the quotes.
If I hard wire the criteria for field Abc to AAA Or BBB, the query does not
return any data. No quotes.
When the Query criteria for field Abc is set to: [Forms]![Form1]![Texta] and I
select a single value from the list box and format it without quotes and pass
the value to the Texta in the form, the query runs correctly.
If I select a single value from the list box and format it with quotes and pass
the value to the Texta in the form, the query does not return any data. Exactly
like when hard wired.
When I select more than one value from the Listbox and format the output: "AAA"
Or "BBB", the same as when hard wired, the query does not return any data.
There are no leading or trailing spaces in the field.
If I delete the criteria for field Abc and add a field to the query:
T8: [Forms]![Form1]![Text8], it correctly shows "AAA" Or "BBB".
I'm obviously doing something wrong, but I don't have a clue what.
Any suggestions will be greatly appreciated.
Chuck
named Abc.
Form1 has a Listbox named ctla and a Textbox named Texta.
Listbox gets values of Abc from a query of Table1 showing field Abc, group by
and Abc, count.
If I hard wire the criteria for field Abc to AAA, the query runs correctly.
If I hard wire the criteria for field Abc to "AAA", the query does not return
any data. Note the quotes.
If I hard wire the criteria for field Abc to "AAA" Or "BBB", the query runs
correctly. Note the quotes.
If I hard wire the criteria for field Abc to AAA Or BBB, the query does not
return any data. No quotes.
When the Query criteria for field Abc is set to: [Forms]![Form1]![Texta] and I
select a single value from the list box and format it without quotes and pass
the value to the Texta in the form, the query runs correctly.
If I select a single value from the list box and format it with quotes and pass
the value to the Texta in the form, the query does not return any data. Exactly
like when hard wired.
When I select more than one value from the Listbox and format the output: "AAA"
Or "BBB", the same as when hard wired, the query does not return any data.
There are no leading or trailing spaces in the field.
If I delete the criteria for field Abc and add a field to the query:
T8: [Forms]![Form1]![Text8], it correctly shows "AAA" Or "BBB".
I'm obviously doing something wrong, but I don't have a clue what.
Any suggestions will be greatly appreciated.
Chuck