Hi everyone I hope you are all well!
I'm hoping for a little help…
I have a main form called frmRecipe with a linked subform called frmIngredients.
On frmRecipe I have an Ingredients search box (txtIngredientsSearch) with a search button (btnIngredientsSearch).
When the user enters an ingredient in the search box and clicks the search button the subform (frmIngredients) should filter to show matches of ingredients.
To achieve this, I wrote an 'ApplyFilter' macro for the search button’s click event, called mcoSearchIngredientsInRecipe - that looks like this:
Forms![frmRecipe]![frmIngredients]![Ingredient] Like "*" & Forms![frmRecipe]![txtIngredientsSearch] & "*"
When I click the search button (having entered an ingredient search term) no filtering seems to occur.
What am I doing wrong?
Thanks in anticipation!
I'm hoping for a little help…
I have a main form called frmRecipe with a linked subform called frmIngredients.
On frmRecipe I have an Ingredients search box (txtIngredientsSearch) with a search button (btnIngredientsSearch).
When the user enters an ingredient in the search box and clicks the search button the subform (frmIngredients) should filter to show matches of ingredients.
To achieve this, I wrote an 'ApplyFilter' macro for the search button’s click event, called mcoSearchIngredientsInRecipe - that looks like this:
Forms![frmRecipe]![frmIngredients]![Ingredient] Like "*" & Forms![frmRecipe]![txtIngredientsSearch] & "*"
When I click the search button (having entered an ingredient search term) no filtering seems to occur.
What am I doing wrong?
Thanks in anticipation!