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.
Juggernaut

To show the right data on a giving date

Featured Replies

Anyone could help me on this?

I have two tables, payments and people. They are related through PeopleID.

People must pay a monthly fee.

I have a field (PaymentSituation) in Peoples table that through a calc tells me if a person owes money or not.

What I need to accomplish is to know the right data on a giving date.

For example: if a person didn’t pay on January but now has fully paid, the paymentsituation tells me that doesn’t owe anything, even if I take a look to January.

I don't know if I can't make myself understood :lol:

How should I relate the tables to show the right data on any giving date?

Thank you very much.

I have a field (PaymentSituation) in Peoples table that through a calc tells me if a person owes money or not.

What is that calc?

  • Author

- Payments table:

·TotalAmountByPeople

- People table:

·AmountOwed

·PaymentSituation: case ( people::AmountOwed - Payments::TotalAmountByPeople < 0 ; "Not fully paid" ; people::AmountOwed - Payments::TotalAmountByPeople >= 0 ; "Fully paid" )

Well, that doesn't tell me how People::AmountOwed is figured out.

I think that if you define another relationship between the two tables as:

People::PeopleID = Payments 2::PeopleID

AND

People::gDate ≥ Payments 2::PaymentDate

you will be able to make the assessment at the given gDate - provided you know how to calculate the amount owed at the same time.

  • Author

The amount owed it's a monthly fee, calculated in another table, how silly!, I didn't think of that, I was trying to make it simple to explain, sorry about that.

Should I make another relationship with the MonthlyFee table?

People::PeopleID = MonthlyFee 2::PeopleID

AND

People::gDate ≥ MonthlyFee 2::Month

Probably (I still don't see the full picture).

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.