AccessNovice123
Registered User.
- Local time
- Yesterday, 17:29
- Joined
- Aug 16, 2017
- Messages
- 13
Hello,
I have a form with loan information containing fields: first_pay_date, last_pay_date, pay_amt, term, and balance. The term is not standard and ranges from 12-36. I need to do the following things all based around today's date:
1. Calculate the next payment date based on today's date in an added field, pay_date.
2. Calculate the balance remaining. The balance is reduced by the pay_amt on the pay_date for the orig_term. This could be a new field, bal_remaining.
3. Need to calculate the term_remaining based on the number of payments made and subtracting that from the orig_term.
The original term is the number of months between first_pay_date and last_pay date.
I have tried using expressions with the DateDiff and DateAdd in IIf statements but it is too limiting.
I looked at VBA, possibly a loop but I need the calculation to be done everytime i open the form, whenever I open the form. Maybe a make table query would work but I am little unsure of a way to calculate the pay_date when the term changes.
Can someone please point me in the right direction? Any help is appreciated. Thank you.
I have a form with loan information containing fields: first_pay_date, last_pay_date, pay_amt, term, and balance. The term is not standard and ranges from 12-36. I need to do the following things all based around today's date:
1. Calculate the next payment date based on today's date in an added field, pay_date.
2. Calculate the balance remaining. The balance is reduced by the pay_amt on the pay_date for the orig_term. This could be a new field, bal_remaining.
3. Need to calculate the term_remaining based on the number of payments made and subtracting that from the orig_term.
The original term is the number of months between first_pay_date and last_pay date.
I have tried using expressions with the DateDiff and DateAdd in IIf statements but it is too limiting.
I looked at VBA, possibly a loop but I need the calculation to be done everytime i open the form, whenever I open the form. Maybe a make table query would work but I am little unsure of a way to calculate the pay_date when the term changes.
Can someone please point me in the right direction? Any help is appreciated. Thank you.