I am creating a training database and am having a bit of trouble.
Issue #1 - I have a series of fields in my form as follows:
Age Gender Run_M Run_S Pull-ups Flex Crunches Score Class
Each field calculates a score. The combined scores translate into a class (1st, 2nd, 3rd, fail) depending on age, gender, and score. I have created a nested IIf formula - that works if the gender selected is "Male" only. I am now at the point in which the formula is too long for acces to calculate.
How do I "tell" the formula to switch calculation types based on Gender, then age, then score? Here is what has worked thus far.
=IIf([Gender]="male" And [Age]>=27 and [Score]>=225,"1st Class")
This formula quickly grows as each age and class are added.
Issue #2
On this same form I need to calculate the body fat percentage based on DOD standards for either Male or Females. All measurements are taken in inches (i.e. 17" neck and 35.5" waiste).
For Males the formula is
%Body Fat = 86.01*Log10(Waiste-Neck)-70.041*Log10(Height)-36.76
For Females the formula is
%Body Fat = 163.205*Log10(Waiste+Hips-Neck)-97.684*Log10(Height)-78.387
The fields I have for this are
Height Weight Waiste Neck Hips
I am not a programmer - more of a LAN/WAN guy - so any help or guidance you can provide would be greatly appreciated.
Thanks in Advance -
Killer23
Issue #1 - I have a series of fields in my form as follows:
Age Gender Run_M Run_S Pull-ups Flex Crunches Score Class
Each field calculates a score. The combined scores translate into a class (1st, 2nd, 3rd, fail) depending on age, gender, and score. I have created a nested IIf formula - that works if the gender selected is "Male" only. I am now at the point in which the formula is too long for acces to calculate.
How do I "tell" the formula to switch calculation types based on Gender, then age, then score? Here is what has worked thus far.
=IIf([Gender]="male" And [Age]>=27 and [Score]>=225,"1st Class")
This formula quickly grows as each age and class are added.
Issue #2
On this same form I need to calculate the body fat percentage based on DOD standards for either Male or Females. All measurements are taken in inches (i.e. 17" neck and 35.5" waiste).
For Males the formula is
%Body Fat = 86.01*Log10(Waiste-Neck)-70.041*Log10(Height)-36.76
For Females the formula is
%Body Fat = 163.205*Log10(Waiste+Hips-Neck)-97.684*Log10(Height)-78.387
The fields I have for this are
Height Weight Waiste Neck Hips
I am not a programmer - more of a LAN/WAN guy - so any help or guidance you can provide would be greatly appreciated.
Thanks in Advance -
Killer23