T
TH
Hi,
This problem is driving me crazy. I'm working on a database to store
recipes. One of the peices of information that is entered is Main
Ingredients. There are three different fields that you can do this in.
Once entered, the data goes to the Main Table and also to the Ingredient
table. It goes to the Ingredient table so that there can be one list of
ingredients over the three fields without duplicates. My problem is trying
to set it up to search for recipes by the Ingredient list from the
Ingredient table. I have set up a form/subform where you can pick which
ingredient you want to search by (this comes from a query based on the
Ingredient table). You can pick up to three ingredients. I have it set up
so that when you pick the first ingredient it searches the 3 fields in the
Main Table to see if the selected ingredient is listed in any of the three
fields. It then requeries the subform which is based on a query. The query
searches the 3 fields in the Main Table for the first ingredient chosen.
This works fine. What I can't figure out is how to be able to search by 2
or 3 ingredients. It needs to show recipes that have both ingredients or
all three ingredients depending on what is choosen. I also need to be able
to show the results if only One ingredient is chosen. This is is driving me
nuts. Any help would be greatly appreciated! Thanks.
TH
This problem is driving me crazy. I'm working on a database to store
recipes. One of the peices of information that is entered is Main
Ingredients. There are three different fields that you can do this in.
Once entered, the data goes to the Main Table and also to the Ingredient
table. It goes to the Ingredient table so that there can be one list of
ingredients over the three fields without duplicates. My problem is trying
to set it up to search for recipes by the Ingredient list from the
Ingredient table. I have set up a form/subform where you can pick which
ingredient you want to search by (this comes from a query based on the
Ingredient table). You can pick up to three ingredients. I have it set up
so that when you pick the first ingredient it searches the 3 fields in the
Main Table to see if the selected ingredient is listed in any of the three
fields. It then requeries the subform which is based on a query. The query
searches the 3 fields in the Main Table for the first ingredient chosen.
This works fine. What I can't figure out is how to be able to search by 2
or 3 ingredients. It needs to show recipes that have both ingredients or
all three ingredients depending on what is choosen. I also need to be able
to show the results if only One ingredient is chosen. This is is driving me
nuts. Any help would be greatly appreciated! Thanks.
TH