Multiple or Combination of Choices

J

jsccorps

Have 3 vendors. Plan is to use check boxes to indicate which vendor or
vendors to pull data for. Want to be able to pull data for any combination
of vendors (e.g., a single vendor or multiple vendors). Does not seem that
Option Group will work. Any other ideas?
 
D

Dirk Goldgar

jsccorps said:
Have 3 vendors. Plan is to use check boxes to indicate which vendor or
vendors to pull data for. Want to be able to pull data for any
combination
of vendors (e.g., a single vendor or multiple vendors). Does not seem
that
Option Group will work. Any other ideas?


For this sort of thing, I usually use a multiselect list box, build the
query criteria on the fly based on the selected items in the list box.
 
R

Ron2006

In a somewhat similar situation, I simply added a true/false field to
my vendor table.

Then on the form where the report was to be selected from I created a
subform with query that showed the vendor names and the check box.

1 button to reset all checks to false
1 button to set all checks to true
instructions to select those vendors that were to be included in the
requested report.

Then the report query had the vendor table with true in that field as
the control of whether to include in report or not.

Caveat:
More than one user could obviously not run the report at the same
time.
To get around that in one app I created a local table with only those
two fields and had that table emptied and reloaded when entering the
form.

If you have "Closed" vendors be sure to add that criteria to the
selection process somewhere.
Ron
 
R

Ron2006

The another advantage to that type of logic is that no changes are
necessary if (when) vendors are added and/or you can add a field to
the vendor table to say whether this vendor should be included in this
type of report or not even if the vendor is still active.
Ron
 

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

Top