SparrowHawk
02-06-2006, 02:16 PM
Hi All,
I have a form with a listbox (lstVolunteers). The data for the list comes from a query. The form also has a series of 6 check boxes to drill down the query - each check box is a different criteria to be used in the query (things like brown hair, blue eyes, white hair, brown eyes, etc). The user can select all, some or none of the checkboxes and only data meeting all that criteria will be listed. There is a command button (cmdSearch) which will activate the query and populate the listbox. For example, if the user checks the box for brown eyes and the box for gray hair, only people with BOTH those criteria will come up listed in the box.
How would I go about modifying the query itself based upon which check boxes are selected when he search button is pressed? (the fields in the table for these selections are called Select1, Select2, Select3, ... Select6 and will be either 0 (for not applicable) or -1 if true.
Hope I explained that clearly enough ...
TIA
Ken
I have a form with a listbox (lstVolunteers). The data for the list comes from a query. The form also has a series of 6 check boxes to drill down the query - each check box is a different criteria to be used in the query (things like brown hair, blue eyes, white hair, brown eyes, etc). The user can select all, some or none of the checkboxes and only data meeting all that criteria will be listed. There is a command button (cmdSearch) which will activate the query and populate the listbox. For example, if the user checks the box for brown eyes and the box for gray hair, only people with BOTH those criteria will come up listed in the box.
How would I go about modifying the query itself based upon which check boxes are selected when he search button is pressed? (the fields in the table for these selections are called Select1, Select2, Select3, ... Select6 and will be either 0 (for not applicable) or -1 if true.
Hope I explained that clearly enough ...
TIA
Ken