Arg81
Well-known member
Hello,
Just looking into a new project I've been assigned, the orginal app was a Lotus 97 Approach db!!
A "DC" has a "Recipe" assigned to it (only 1 recipe per DC).
A "Recipe" is made up of individual "Ingredients".
An "Ingredient" has an associated cost to it.
The "IngredientWeight" is not based at Ingredient level, instead it's set at the recipe level.
Now, I tried setting the following tables up:
DC
DCNumber (Pri), RecipeID, {other fields}
Recipe
RecipeID (Pri), IngredientID (Pri), IngredientWeight
Ingredient
IngredientID (Pri), IngredientName, IngredientCost
There I can link Ingredient to Recipe via IngredientID on a 1-to-many relationship (1@Ingredient, many@Recipe)
However, I can then not set a relationship up between Recipe and DC. I think it's because I have RecipeID and IngredientID set as the Primary Key on the Recipe Table.
I need to try and break this down into another table I think, just looking for pointers where it needs to be.
Regards,
Just looking into a new project I've been assigned, the orginal app was a Lotus 97 Approach db!!
A "DC" has a "Recipe" assigned to it (only 1 recipe per DC).
A "Recipe" is made up of individual "Ingredients".
An "Ingredient" has an associated cost to it.
The "IngredientWeight" is not based at Ingredient level, instead it's set at the recipe level.
Now, I tried setting the following tables up:
DC
DCNumber (Pri), RecipeID, {other fields}
Recipe
RecipeID (Pri), IngredientID (Pri), IngredientWeight
Ingredient
IngredientID (Pri), IngredientName, IngredientCost
There I can link Ingredient to Recipe via IngredientID on a 1-to-many relationship (1@Ingredient, many@Recipe)
However, I can then not set a relationship up between Recipe and DC. I think it's because I have RecipeID and IngredientID set as the Primary Key on the Recipe Table.
I need to try and break this down into another table I think, just looking for pointers where it needs to be.
Regards,