M
mbr96 via AccessMonster.com
I need to populate a control on a form with the product of two other values
on the same form. I use a macro with a SetValue statement to do this, but am
getting a strange result on the calculation.
Rent = Cost*LeaseRate
Cost = $15615
LeaseRate = .0278
When I run the Setvalue macro, it results in Rent = $434.090 (I used the
Number, Decimal data type for all three numerical values).
Pull out a calculator. $15615*.0278 = 434.097
What????? Access is getting $434.090, correct value is $434.097 which would
round to $434.10.
This isn't just formatting or rounding, what's going on?
If you need more specifics, please let me know.
MBR
on the same form. I use a macro with a SetValue statement to do this, but am
getting a strange result on the calculation.
Rent = Cost*LeaseRate
Cost = $15615
LeaseRate = .0278
When I run the Setvalue macro, it results in Rent = $434.090 (I used the
Number, Decimal data type for all three numerical values).
Pull out a calculator. $15615*.0278 = 434.097
What????? Access is getting $434.090, correct value is $434.097 which would
round to $434.10.
This isn't just formatting or rounding, what's going on?
If you need more specifics, please let me know.
MBR