Select "All" Group Filter Control Dropdown

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I provide a selection for all values in a group filter control
dropdown list?
 
You'll need a Union query. Something like:

SELECT Field1 FROM MyTable
Union
SELECT "<All>" AS Field1 From MyTable

If you use the value of the combobx in another query, you'll need to change
the criteria to something like:

IIF(Forms!MyForm!cboSelection="<All>", [TableFieldName],
Forms!MyForm!cboSelection)

What this does is say, "if you selected All, match the field name to itself,
thus returning all records. If it's not All, filter for the value selected."

HTH,
Barry

This assumes that
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top