To be honest, Jim, I don't use that kind of filter, and I have a dim
recollection of some kind of bug associated with it.
To help you debug what is going on, open your form and set it up with the
problem filter active. Then press Ctrl+G to open the Immediate window, and
enter something like this:
? Forms![MyForm].Filter
Look at the result. Make sure you have the field specified there in the
query of the report.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Reply to group, rather than allenbrowne at mvps dot org.
Jim Orson said:
Allen,
The command button code works perfectly for a simple text box on the form.
However, I am having trouble getting the query for the report RecordSource
to work. With a filter by selection on the combobox in the form, I get a
request for a parameter. Depending how I reply, I either get no records
in
the report or all records. Maybe some info on the combobox would help you
get me back on track.
The combobox has a control source of CategoryID (from tblCategories) and
the
SQL for the RowSource is SELECT DISTINCTROW tblCategories.* FROM
tblCategories ORDER BY tblCategories.CategoryName;
This allows me to view the actual Category Name in the combobox rather
than
the CategoryID.
When I add the tblCategories to the report query as you recommended and
click on the line between it and tblHousehold, I get three choices of
"joins". I have tried selecting each of them and still the report does
not
run with the filtered recordset.
Is this enough info for you to understand and correct the problem I am
having? I do appreciate your assistance, Allen.
Jim...
either
of