Graham T
Registered User.
- Local time
- Today, 20:42
- Joined
- Mar 14, 2001
- Messages
- 300
I am attempting to create an on-screen Cookery Book. From the information provided I have deduced that there will be a need to store information in four main tables relating to:
tblMeals (this will store Meal Information) and should include:
* lngMealID (Primary Key, autonumber)
* strMealName
* strMealDescription (Chinese, Thai, Indian, English etc.)
* lngMealCategoryID (Foreign Key from tblMealCategories)
* intMealPrepTime (In minutes, prep time only - for the meal)
tblMealsCategories (this will store Meal Category Descriptions) and should include:
* lngMealsCategoryID (Primary Key, autonumber)
* strMealsCategoryDescription (Vegetarian, Vegan etc.)
tblIngredients (this will store Ingredient Names) and should include:
* lngIngredientID (Primary Key, autonumber)
* strIngredientName
tblCookingMethods (this will store Cooking Methods) and should include:
* lngMethodID (Primary Key, autonumber)
* strMethodDescription (Grill, Bake, Microwave etc.)
I will then also require the use of 2 LINK tables as at present there are Many-to-Many relationships between:
tblMeals >> tblCookingMethods and
tblMeals >> tblIngredients.
The LINK tables would need to be:
tblLINKMealsMethods (this will link Meals and Methods) and should consist of:
* lngMealID (Multi Field Primary Key)
* lngMethodID (Multi Field Primary Key)
* intMealCookTime (cooking Time for the Meal and Method)
* memMealCookingInstructions (Cooking Time for the particular meal and method)
tblLINKMealsIngredients (this will link Meals and Ingredients) and should consist of:
* lngMealID (Multi Field Primary Key)
* lngIngredientID (Multi Field Primary Key)
* strUnitOfMeasure
* intQuantity
----------------------------------------------------------------------
If anybody can see any glearingly obvious mistakes I would appreiciate any comments and ideas.
TIA
Graham
tblMeals (this will store Meal Information) and should include:
* lngMealID (Primary Key, autonumber)
* strMealName
* strMealDescription (Chinese, Thai, Indian, English etc.)
* lngMealCategoryID (Foreign Key from tblMealCategories)
* intMealPrepTime (In minutes, prep time only - for the meal)
tblMealsCategories (this will store Meal Category Descriptions) and should include:
* lngMealsCategoryID (Primary Key, autonumber)
* strMealsCategoryDescription (Vegetarian, Vegan etc.)
tblIngredients (this will store Ingredient Names) and should include:
* lngIngredientID (Primary Key, autonumber)
* strIngredientName
tblCookingMethods (this will store Cooking Methods) and should include:
* lngMethodID (Primary Key, autonumber)
* strMethodDescription (Grill, Bake, Microwave etc.)
I will then also require the use of 2 LINK tables as at present there are Many-to-Many relationships between:
tblMeals >> tblCookingMethods and
tblMeals >> tblIngredients.
The LINK tables would need to be:
tblLINKMealsMethods (this will link Meals and Methods) and should consist of:
* lngMealID (Multi Field Primary Key)
* lngMethodID (Multi Field Primary Key)
* intMealCookTime (cooking Time for the Meal and Method)
* memMealCookingInstructions (Cooking Time for the particular meal and method)
tblLINKMealsIngredients (this will link Meals and Ingredients) and should consist of:
* lngMealID (Multi Field Primary Key)
* lngIngredientID (Multi Field Primary Key)
* strUnitOfMeasure
* intQuantity
----------------------------------------------------------------------
If anybody can see any glearingly obvious mistakes I would appreiciate any comments and ideas.
TIA
Graham