Filter Combo based on checkbox with null value (1 Viewer)

Danick

Registered User.
Local time
Today, 06:12
Joined
Sep 23, 2008
Messages
351
I'm trying to filter a combo box using a three way checkbox in a similar to the way of doing the cascading combo box by using something like this in the combo row source

[Forms]![FormName]![CheckBoxName]

This works when the checkbox is True or False, but not if it's Null. Anyway to show all records in the combobox when the checkbox is Null?

Thanks
 

theDBguy

I’m here to help
Staff member
Local time
Today, 03:12
Joined
Oct 29, 2018
Messages
21,473
Add "OR Is Null" to your criteria.
 

Danick

Registered User.
Local time
Today, 06:12
Joined
Sep 23, 2008
Messages
351
Add "OR Is Null" to your criteria.
Thanks - I tried that before posting and couldn't get it to work. But seeing that you also suggested the same thing, I tried various ways of doing this and finally got it working by adding by just repeating the first line again. So in the end I got it work by doing this.

Code:
[Forms]![FormName]![CheckBoxName]) OR ([Forms]![FormName]![CheckBoxName]) Is Null

Sometimes is just great to have some reassurance to keep from going off on a tangent when something so simple doesn't work out the first time.
Thanks again for responding...
 

theDBguy

I’m here to help
Staff member
Local time
Today, 03:12
Joined
Oct 29, 2018
Messages
21,473
Glad to hear you got it sorted out. Good luck with your project.
 

Users who are viewing this thread

Top Bottom