You have really tweaked my brain
How does this look:
Code:
Accountbalance |
CalcMinPay |
CalcUncorrected |
$10.00 |
$10.28 |
0.3597965 |
$20.00 |
$20.56 |
0.719593 |
$35.50 |
$35.00 |
1.277277575 |
$630.70 |
$35.00 |
22.692365255 |
$995.00 |
$35.80 |
35.79975175 |
$10,000.00 |
$359.80 |
359.7965 |
And the SQL of the query is (wait for it, wait for it):
Code:
SELECT Account.AccountBalance, IIf(([accountbalance]*1.02799)<=35,CCur(round(([accountbalance]*1.02799),2)),IIf(([accountbalance]*1.02799)*0.035<=35,35,CCur(round((([accountbalance]*1.02799)*0.035),2)))) AS CalcMinPay, ([accountbalance]*1.02799)*0.035 AS CalcUncorrected
FROM Account
ORDER BY Account.AccountBalance;
And in query design view:
Code:
CalcMinPay: IIf(([accountbalance]*1.02799)<=35,CCur(round(([accountbalance]*1.02799),2)),IIf(([accountbalance]*1.02799)*0.035<=35,35,CCur(round((([accountbalance]*1.02799)*0.035),2))))
Ha! What do yo think now???