I don't think you merely want a query, but rather some VBA code that checks the condition of the checkbox and toggles the recordsource between two queries, one that select * from tablename, and the other select * from tablename where condition is met...