Hello and thanks for allowing me to post.
I am new to access and am looking for some help from you guys who are much more experienced than me. I am developing a recipe database and on one particular form I want to set the value of txtIngredient1(text box) as the IngredientName(field in INGREDIENTS table) from the INGREDIENTS table where the ID(anotehr field in INGREDIENTS table) is equal to the value of the cboExistingIngredients (combobox) which is in the ADD_RECIPES form (as is txtIngredient1).
Here is the control source I have for the txtIngredient1 control:
=DLookUp("[IngredientName]","[INGREDIENTS]",[ID]=[Forms]![ADD_RECIPES]![cboExistingIngredients])
When the ID = 1, it works as I expect but is blank when the ID is anything other than 1. Can anyone help?
I am new to access and am looking for some help from you guys who are much more experienced than me. I am developing a recipe database and on one particular form I want to set the value of txtIngredient1(text box) as the IngredientName(field in INGREDIENTS table) from the INGREDIENTS table where the ID(anotehr field in INGREDIENTS table) is equal to the value of the cboExistingIngredients (combobox) which is in the ADD_RECIPES form (as is txtIngredient1).
Here is the control source I have for the txtIngredient1 control:
=DLookUp("[IngredientName]","[INGREDIENTS]",[ID]=[Forms]![ADD_RECIPES]![cboExistingIngredients])
When the ID = 1, it works as I expect but is blank when the ID is anything other than 1. Can anyone help?