AndyShuter
Registered User.
- Local time
- Today, 18:52
- Joined
- Mar 3, 2003
- Messages
- 151
We have a mathematical eqaution that needs to be converted into a query.
Basically there are 4 parts to the eqaution which are based on a personal loan / hp agreement
Balance (B) - ie the amount borrowed
Term (N) - the number of months the loan is over
Annual Rate (F) - the cost per thousand per annum (ie 10% = £100 per thousand, per annumn)
Payment (R) - the result of the above three values
So, to calculate the PAYMENT, we use the foillowing equation
R=B((1/N)+(F/1200))
To calculate the BALANCE
B=R/((1/N)+(F/1200))
The Annual Rate...
F=(R-(B/N))*1200/B
And finally the TERM
N=B/(R-((B*F)/1200))
OK,
Our first aim is to be able to plant these mathematical equations into the grid of a query...
but secondly (and crucially) have the ability to force the control on th eform to accept either a manual input or make a calculation based on the other 3 values!!
Any help wouyld be greatly appreciated!
Happy New Year
Basically there are 4 parts to the eqaution which are based on a personal loan / hp agreement
Balance (B) - ie the amount borrowed
Term (N) - the number of months the loan is over
Annual Rate (F) - the cost per thousand per annum (ie 10% = £100 per thousand, per annumn)
Payment (R) - the result of the above three values
So, to calculate the PAYMENT, we use the foillowing equation
R=B((1/N)+(F/1200))
To calculate the BALANCE
B=R/((1/N)+(F/1200))
The Annual Rate...
F=(R-(B/N))*1200/B
And finally the TERM
N=B/(R-((B*F)/1200))
OK,
Our first aim is to be able to plant these mathematical equations into the grid of a query...
but secondly (and crucially) have the ability to force the control on th eform to accept either a manual input or make a calculation based on the other 3 values!!
Any help wouyld be greatly appreciated!
Happy New Year