The problem could be the disconnect between the values, i.e. the form value is Yes/True but the table field value being sought is No/False. You might want to reverse the logic on the form so that these are in sync to make it simpler. If not, I guess you're looking at a long drawn out IIF expression in the query so that if form is yes, criteria is no and vice versa. I presume the form checkbox will not be bound? Not sure, but I don't think the odd behaviour of checkboxes (when unbound or on a new record, they have one colour if yes, another if no, and another if it's unknown - a triple state) will come into play. Your query may not play well with this if it isn't addressed in the IIF expression.
A code solution would be the most reliable. I didn't offer one because your question was how to do this in a query.
Last edited by Micron; 05-31-2018 at 09:13 AM.
Reason: clarification
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.