dbTalk Databases Forums  

Help with calculated field in Access97

comp.database.ms-access comp.database.ms-access


Discuss Help with calculated field in Access97 in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
microbof
 
Posts: n/a

Default Help with calculated field in Access97 - 09-03-2009 , 08:42 AM






It is many years since I last touched Access97 but this is the version i
have been given to work with.
I am trying to set up a nutrition database for
use by children in a school to check calorific intake.
I have created two tables one is called tblMeal and the
other is called tblIngredient.


tblIngredient consists of two fields
1 Ingredient which is a text field containing name of ingredient (primary
key)
2 Calories in 1 gram of the ingredient


tblMeal consists of three fields
1 MealName text field (primary key)
2 Servings byte for how many portions
3 Description text/memo


I then created a third table by defining a relationship between the existing
tables
which I called tblMealIngredientJoin
This has three fields
MealName Primary key
Ingredient...........Primary key
Quantity ..........byte value of grams of ingredient required.


I then put tablMealIngredientJoin as a table (based on a meal name)
All seems OK so far but the bit I need help with is how do I add another
field to this form which shows total number of Calories for the ingredient
used.


i.e. Quantity x calories in the ingredient.


Any help appreciated. If the structure is wrong any suggestions ver
welcome.

Thank you.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.