R
Rashid Khan
Hello All,
I am using Access 2002. I had the following problem:
Example No. 1
Line 1) SubTotal : 480.52
Line 2) RoundOff : + 0.48
Line 3) GrandTotal : 481.00
My problem is that if the SubTotal ends with 0.50 and greater then the
round off should be up to the next whole number and the value in No.2
RoundOff should show the amount by which it is rounded up which in this
case is +0.48 and rounded up to 481.00 (as shown in the Line 3) GrandTotal).
Example No. 2
Line 1) SubTotal : 480.43
Line 2) RoundOff : -0.43
Line 3) GrandTotal : 480.00
The solution I was using
INT() function to calculate Line3 = int([line1]+0.50), and then calculate
Line2 = Line3 - Line1
I have added FreightCharge as follows:
Line 1) SubTotal :480.43
Line 2) FreightCharge : 123.00
Line 3) RoundOff : -0.43
Line 4) GrandTotal: 603.00
When I change the formula RoundOff=Int([Subtotal]+[FreightCharge]+[Sales
Tax]+0.5)
It shows RoundOff value as 122.57 instead of -0.43.
How can I achieve the correct RoundOff and GrandTotal figures?
Any help would be greatly appreciated
Rashid Khan
I am using Access 2002. I had the following problem:
Example No. 1
Line 1) SubTotal : 480.52
Line 2) RoundOff : + 0.48
Line 3) GrandTotal : 481.00
My problem is that if the SubTotal ends with 0.50 and greater then the
round off should be up to the next whole number and the value in No.2
RoundOff should show the amount by which it is rounded up which in this
case is +0.48 and rounded up to 481.00 (as shown in the Line 3) GrandTotal).
Example No. 2
Line 1) SubTotal : 480.43
Line 2) RoundOff : -0.43
Line 3) GrandTotal : 480.00
The solution I was using
INT() function to calculate Line3 = int([line1]+0.50), and then calculate
Line2 = Line3 - Line1
I have added FreightCharge as follows:
Line 1) SubTotal :480.43
Line 2) FreightCharge : 123.00
Line 3) RoundOff : -0.43
Line 4) GrandTotal: 603.00
When I change the formula RoundOff=Int([Subtotal]+[FreightCharge]+[Sales
Tax]+0.5)
It shows RoundOff value as 122.57 instead of -0.43.
How can I achieve the correct RoundOff and GrandTotal figures?
Any help would be greatly appreciated
Rashid Khan