Reply
How to calculate BMI in a table
Old 11-03-2009, 06:52 AM How to calculate BMI in a table
Junior Talker

Posts: 3
Name: ashley
Trades: 0
Hi,

I am just beginning to use Microsoft Access again and have no idea how to perform calculations in a table.
I have a table which shows a number of fields e.g. a client's age, height and weight. I would like to add a field in the table which calculates BMI using the following formula - weight (in Kilogrammes) divided by height (in metres squared)
Please please can someone help!
ashgirl is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 11-03-2009, 07:09 AM Re: How to calculate BMI in a table
chrishirst's Avatar
Super Moderator

Posts: 22,282
Location: Blackpool. UK
Trades: 0
depends on how you are inputing the data because that is where the calculation will be done.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-03-2009, 07:21 AM Re: How to calculate BMI in a table
Junior Talker

Posts: 3
Name: ashley
Trades: 0
The data is being copied from a word document into the table.
Later on I will be creating a form to input the data from the word document into the table. but for now i simply need to enter some backdated data into the table (a year's worth of data).
Previously this data was held in an Excel spreadsheet where it was easy enough to enter a formula to calculate BMI. Now I have no idea how to do it.
Any help would be much appreciated.
ashgirl is offline
Reply With Quote
View Public Profile
 
Old 11-03-2009, 07:44 AM Re: How to calculate BMI in a table
chrishirst's Avatar
Super Moderator

Posts: 22,282
Location: Blackpool. UK
Trades: 0
Quote:
Now I have no idea how to do it.
Probably because it can't be done. It will need a form to calculate it. Access doesn't much in the way of "on-entry" calculations
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-03-2009, 08:30 AM Re: How to calculate BMI in a table
Junior Talker

Posts: 3
Name: ashley
Trades: 0
Ok, so it can't be don in the table so please can you tell me how I'd do it in a form? Thanks
ashgirl is offline
Reply With Quote
View Public Profile
 
Old 11-03-2009, 11:41 AM Re: How to calculate BMI in a table
chrishirst's Avatar
Super Moderator

Posts: 22,282
Location: Blackpool. UK
Trades: 0
dim BMI

BMI = Weight/Height

get the weight and height then store BMI in the table.

the question being WHY do you need to store it in the table? It could simply be calculated as the data is displayed.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to How to calculate BMI in a table
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.12959 seconds with 13 queries