Hello all
I am sorry to ask what I am sure must be a very simple question but I have googled (including this forum) for a couple of days and can't find the answer to my question put simply enough for my very inexperienced MS Access brain to understand.
I have a one table database for collecting recipes. The table includes a true/false field called DinnerOption which I use to 'tag' a recipe as one I could cook for dinner. I want to create a form that allows the user to select either the records that are a dinner option (true) or the records that are not a dinner option (false) to be included in the query. I have been able to include the true/false criteria in a query (not dynamically) by adding the word 'true' or 'false' in the criteria of the DinnerOption field in a query.
I have also been able to create a control in a form that allows a user to limit the query based on the contents of a text field.
This works when I use it as a criteria in the RecipeName field in the query:
I thought the answer would be to combine the successes I have had by placing the following in the criteria of the DinnerOption field in the query:Code:[Forms]![Form1]![txtRecipeName]
Unfortunately, this did not work.Code:[Forms]![Form1]![chkDinnerOption] = True
I know I am missing something really basic but can't work out what. I would really appreciate any thoughts some more experience people have.
Thank you.