943,915 Members | Top Members by Rank

Ad:
Jun 14th, 2009
0

Calculated field in Access

Expand Post »
Hello,

This was supposed to be easy but I could not get it!
I need to create a calculated field in Access (preferably in a table or maybe a query) that calculates the BMI. I have fields for the weight in kgs and Height in cm. The formula is:
BMI=(Wt(in kg)/(Ht (in meters)^2)). However, as the height is stored in cm I need to convert it to meter. And also, I need the BMI with only 1 decimal place (for example: 23.6)
I came up with the expression:
=([Tbl1]![weight])/(([Tbl1]![Height]/100)^2)

Can anyone help!
Thank You.
Mona
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mars964 is offline Offline
1 posts
since Jun 2009
Jul 7th, 2009
0

Re: Calculated field in Access

Try code:
=FormatNumber(([Tbl1]![weight])/(([Tbl1]![Height]/100)^2) ,1)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hiền muội is offline Offline
1 posts
since Jul 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in MS Access and FileMaker Pro Forum Timeline: SQL to Access question
Next Thread in MS Access and FileMaker Pro Forum Timeline: Multi-select listboxes





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC