G
Guest
I have a combo box and when i select an item i want to perform this sql
which is the Row Source for a ListBox:
SELECT Ingredients.IngredientName
FROM Ingredients
WHERE (((Ingredients.IngredientID) In (Select
Recipes2Ingredients.IngredientID From Recipes2Ingredients Where
Recipes2Ingredients.RecipeID=Me.Combo10.Column(1))))
ORDER BY Ingredients.IngredientName;
it says i have an undefined function. i assume this is
Me.Combo10.Column(1). if i hard code a value it works so i guess the rest of
the sql is ok. how do i tell it to use the value from the Combo10?
which is the Row Source for a ListBox:
SELECT Ingredients.IngredientName
FROM Ingredients
WHERE (((Ingredients.IngredientID) In (Select
Recipes2Ingredients.IngredientID From Recipes2Ingredients Where
Recipes2Ingredients.RecipeID=Me.Combo10.Column(1))))
ORDER BY Ingredients.IngredientName;
it says i have an undefined function. i assume this is
Me.Combo10.Column(1). if i hard code a value it works so i guess the rest of
the sql is ok. how do i tell it to use the value from the Combo10?