Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Creating Loan Payment database

Featured Replies

I have a relational db with a couple of db's USER and LOAN. The LOAN db holds term, and monthly payment amounts.

What I want to do is create a third db called LOANPAYMENTS that will hold individual "invoice" records for each monthly payment for each user, so that I can forecast collections by month. I could do this manually of course, but I'm sure this is not a new issue. :-)

Ideally, once I enter a new record in LOANS, I could write a script that creates X number of records in PAYMENTS, where X equals "term" in LOANS. Loans db also has month of first payment, so script would then also use that value as due date for first payment record, then add a calendar month for each subsequent.

Are there templates for this somewhere? Thanks for any help.

Try: www.fmfiles.com/enduserbus4.html

The script you described wouldn't be hard to construct. You'd want a global number field in the payments file to use as a "counter." Set the counter to the number of payments, set the start date, then loop, adding one to the month and subtracting one from the counter until it's zero.

  • Author

Thanks. What if the term isn't global, i.e. each loan has a different number of months to pay?

The global is just to use as a temporary counter in the script that generates records in the payments file. You'd still keep the "number of months" as a standard number field in each loan record.

Fitch

I love your graphic.

John

  • Author

Thanks a lot, Tom!

I've actually got the whole thing almost working based on your suggestions. My one problem is an issue with calculating the new due date. Result should be in date format and I have the calculation set as this:

GlobalPaymentMonth & "/" & DueDateDay & "/" & DueDateYear

However, it's just coming out plain wrong. The DuDateDay is a different number and the duedateyear comes out wrong also. Am I doing something wrong in trying to create the new date through a calculation forumla like the above? I assumed I could just create number/number/number and set result as date format.

Try Date(GlobalPaymentMonth, DueDateDay, DueDateYear)

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.