Hi
I've a problem with trying to use a user input field on a form as a criteria for a query. I've used checkboxes as indicators for the fields that will be used to run the query. The query criteria/syntax works for fields in the table that have no NULL values but for fields that do have NULL values, I can't quite seem to figure out how to get the query to do what I want. I've attached a simplified version of what I'm trying to accomplish. In the example, there is one table with three fields: Book_Title, Book_Edition and ISBN. I want users to be able to search for the title of a book and get results if there is an Edition or a NULL Value as well as get the specific results if the user inputs the title of the book and the Edition.
EDIT:
I made an error in uploading the wrong sample accdb, I've attached the correct one in my post below
I've a problem with trying to use a user input field on a form as a criteria for a query. I've used checkboxes as indicators for the fields that will be used to run the query. The query criteria/syntax works for fields in the table that have no NULL values but for fields that do have NULL values, I can't quite seem to figure out how to get the query to do what I want. I've attached a simplified version of what I'm trying to accomplish. In the example, there is one table with three fields: Book_Title, Book_Edition and ISBN. I want users to be able to search for the title of a book and get results if there is an Edition or a NULL Value as well as get the specific results if the user inputs the title of the book and the Edition.
EDIT:
I made an error in uploading the wrong sample accdb, I've attached the correct one in my post below
Last edited: