RammerJammer1674
Registered User.
- Local time
- Yesterday, 23:01
- Joined
- Jan 2, 2013
- Messages
- 18
Hi everyone,
I'm having problem calculating percentages. I have a Table that has fields for SystemPrice, PriceAdjust, PriceAdjustPercentage, and TotalPrice.
All are Currency except for PriceAdjustPercentage which obviously is a percentage and TotalPrice which is a calculated field.
TotalPrice is calculated as iif(not(isnull([PriceAdjust])),[SystemPrice]+[PriceAdjust],[SystemPrice]). It works perfectly fine the way I need it to work.
I have a form where you input the SystemPrice and either PriceAdjust OR PriceAdjustPercentage. If you enter PriceAdjust, OnUpdate will SetProperty PriceAdjustPercentage Value as =([TotalPrice]/[SystemPrice]-1). I know this is the correct formula to use, but it is giving me either 0.00%, 100.00%, 200.00% so on and so forth. It's not giving me the correct percentage. I believe it is a formatting issue. Also, if I type in directly to the PriceAdjustPercentage, it does the same thing. If I type in 25%, it rounds it down to 0.00%, 60% goes to 100.00% etc to the nearest 100.
Any help at all?
I'm having problem calculating percentages. I have a Table that has fields for SystemPrice, PriceAdjust, PriceAdjustPercentage, and TotalPrice.
All are Currency except for PriceAdjustPercentage which obviously is a percentage and TotalPrice which is a calculated field.
TotalPrice is calculated as iif(not(isnull([PriceAdjust])),[SystemPrice]+[PriceAdjust],[SystemPrice]). It works perfectly fine the way I need it to work.
I have a form where you input the SystemPrice and either PriceAdjust OR PriceAdjustPercentage. If you enter PriceAdjust, OnUpdate will SetProperty PriceAdjustPercentage Value as =([TotalPrice]/[SystemPrice]-1). I know this is the correct formula to use, but it is giving me either 0.00%, 100.00%, 200.00% so on and so forth. It's not giving me the correct percentage. I believe it is a formatting issue. Also, if I type in directly to the PriceAdjustPercentage, it does the same thing. If I type in 25%, it rounds it down to 0.00%, 60% goes to 100.00% etc to the nearest 100.
Any help at all?