Filter Form with Check Box

Dartagnan

Active Member
Joined
Jun 19, 2002
Messages
386
Has anyone used check boxes to filter a form?

My Form has 7 check boxes (unbound). I need the form to requery and filter as the check boxes are checked or unchecked.

Can this be done using VBA, a query or a combination of both?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hi

Yes this can be done if the check boxes are in the form header. I did something very simliar using drop down boxes and VBA code to set filters and refresh/requery the form.

Andrew

P.S. I just saw your other thread about filtering using combo boxes - is this an attempt to avoid the issue of not having a 'nothing' option on the combo box?
 
Last edited:
Upvote 0
Yes I am exploring this as an option.

My challenge(s) is to find a way to filter a form based on a persons specialty.

As of right now a person could have up to 7 specialties. I need my form to be able to filter by specialty. If no specialty is chose the form should show me all persons in my rotation.

Any suggestions on how to store these specialties? Store them as yes/no on my Staff table. Create a lookup table to store the types of specialties and then a staffspecialty table to store the specialties by staff id? I consider that the easy part.

The biggest challenge I face is how to bring back these specialties to the form and then be able to filter. If possible I would like to only have one filter box.
 
Upvote 0

Forum statistics

Threads
1,213,560
Messages
6,114,304
Members
448,564
Latest member
ED38

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top