R
r
Hello-
I have two fields that are meant to work together to show both the dollar
amount and percent of a total budget.
I have the budget amount on the form, then the dollar and percent controls
on the form as well. When the user enters a value in the dollar field, the
percent field will be updated with the percent of the total budget that
dollar amount is. Conversely, is the percent is entered in the percent
control, the dollar amount of the total budget will display.
This is an example of what I expect:
Total Budget: $100
Dollars: $25
Percent: 25%
Dollars is calculated as percent * totalbudget.
Percent is calculated as dollars/totalbudget.
However....
When I enter $25 in the dollars field, the percent field is showing 0% - any
number less than $100 gives 0%, but when I enter 100 in the dollars field, I
get 100%.
What the heck am I doing wrong?! And can someone forsee a problem with my
formula for calculating the dollars based on what's above?
Thanks in advance.
-R
I have two fields that are meant to work together to show both the dollar
amount and percent of a total budget.
I have the budget amount on the form, then the dollar and percent controls
on the form as well. When the user enters a value in the dollar field, the
percent field will be updated with the percent of the total budget that
dollar amount is. Conversely, is the percent is entered in the percent
control, the dollar amount of the total budget will display.
This is an example of what I expect:
Total Budget: $100
Dollars: $25
Percent: 25%
Dollars is calculated as percent * totalbudget.
Percent is calculated as dollars/totalbudget.
However....
When I enter $25 in the dollars field, the percent field is showing 0% - any
number less than $100 gives 0%, but when I enter 100 in the dollars field, I
get 100%.
What the heck am I doing wrong?! And can someone forsee a problem with my
formula for calculating the dollars based on what's above?
Thanks in advance.
-R