I have no experience using a form to do a query in Access but that has been my assigned task.
We have a database with many columns of data. I have a form that gives people the option to filter the data based on values in each of those fields. For example, you can choose the data that corresponds to a "class" of 1 or 2, you can choose the records corresponding
to a "zone" of 1, 2 or 3. Any number of things can be combined to produce the desired dataset.
My problem is I have not figured out how to modify the code in the qry (not the form) so that a limitation does not have to be included. My code so far for "class" is [forms]![block model]![class] but if someone does not want to limit the data search by a
value within the "class" field I have not found a way to tell this code to exclude it.
On my form I included a check box that a person can check if they want to limit the search using that field. Is there a way to have that code look at whether or not that checkbox has a check in it and if it does to run that code in the query? If the checkbox
is not checked that code would not be run and no limits would be placed on that field. I hope this makes sense.
This query will not update anything in the data itself and the form is connected to a database of our data.