I'm trying to run a query based on an unbound form with a number of check boxes, but have run into a problem that hopefully someone can help with:
I have a single table with data being added via a form. The data is text comments on a number of resources, then a number of check boxes to show which resources the comments refer to (Resource1, Resource2, Resource3 etc). I want to be able to produce a query on the comments referring to any of the resources.
To do this I have a query with the comments and each of the check boxes. I have another form that is a copy of all the check boxes on the first form, but they are all unbound. The criteria in the query for each check box is then taken from the unbound form check boxes. The plan is that my staff tick the box(es) that they want the query to be on and this runs that query.
The problem is that while the criteria in the query selects only the records that are checked (ie when Resource1 is checked on the unbound form the query just selects records with Resource1 checked in the data) it also means it doesn't select records unless they are also unchecked for other resources (ie a record checked for Resource1 and Resource2 will not be selected as the query recognises Resource2 as being unchecked in the unbound form).
I'm after a way of getting the query to recognise checked check boxes (yes), but for unchecked check boxes to allow records that are either checked or unchecked (yes or no) (ie when ticking Resource1 and leaving Resource2 unticked in the unbound form the query will select all records checked for Record1 whether they are checked for Record2 or not).
Hope this makes some sort of sense, and thanks to anyone with answers.