I am trying to create a small database system that will produce a week's shopping list for food. I have a recipes table, then a Recipe_Lines table, then an Ingredients table and finally a Unit of Measurements table.
I have a form to "Add a Recipe". The control source for this form is the Recipes table. There is an embedded subform to add the Recipe_Lines for each Recipe. The Master/Child link is "Recipe_ID". So far so good.
However, in the subform, each Recipe Line has:
Recipe_ID
Recipe_Line_ID
Ingredient_ID
Unit of Measurement_ID
My problem: How do I get the "Unit of Measurement_ID" to be automatically populated from the Ingredients_UnitOfMeasurement (ie. a single value)? Nb. The Ingredients table already has populated single value permissible Units of Measure for each ingredient eg. Olive Oil can only be "Tbsp" (not millilitre or anything else)
Example: If my first ingredient for the Cottage pie recipe is "Olive Oil", I need the Unit of Measurement ID to be "Tbsp" (tablespoon) not some random value input by whoever is doing this and auto populate in the sub form
Many thanks for your help
I have a form to "Add a Recipe". The control source for this form is the Recipes table. There is an embedded subform to add the Recipe_Lines for each Recipe. The Master/Child link is "Recipe_ID". So far so good.
However, in the subform, each Recipe Line has:
Recipe_ID
Recipe_Line_ID
Ingredient_ID
Unit of Measurement_ID
My problem: How do I get the "Unit of Measurement_ID" to be automatically populated from the Ingredients_UnitOfMeasurement (ie. a single value)? Nb. The Ingredients table already has populated single value permissible Units of Measure for each ingredient eg. Olive Oil can only be "Tbsp" (not millilitre or anything else)
Example: If my first ingredient for the Cottage pie recipe is "Olive Oil", I need the Unit of Measurement ID to be "Tbsp" (tablespoon) not some random value input by whoever is doing this and auto populate in the sub form
Many thanks for your help