B
Bill Stone
I have a report writer application in which the user can
select data in several fields (comboboxes/listboxes on a
form) and then create a report of all data that meets the
selected values, via a query. Currently there are only a
few combinations of fields that they select and I
have "hard coded" a query for each combo.
What I want to do is put each field on the form and let
the user select data in the one's that apply. And if he
does not select a certain field, I do not want that field
to be used in the query. What I envision is a
combobox/listbox that has each record listed and then
an "All" record. If they select "All" then they do not
want this field used in the query.
Can I set up a query in access to handle this or will I
have to query the query on the fly using VBA code?
Thanks,
Bill
select data in several fields (comboboxes/listboxes on a
form) and then create a report of all data that meets the
selected values, via a query. Currently there are only a
few combinations of fields that they select and I
have "hard coded" a query for each combo.
What I want to do is put each field on the form and let
the user select data in the one's that apply. And if he
does not select a certain field, I do not want that field
to be used in the query. What I envision is a
combobox/listbox that has each record listed and then
an "All" record. If they select "All" then they do not
want this field used in the query.
Can I set up a query in access to handle this or will I
have to query the query on the fly using VBA code?
Thanks,
Bill