Achineche Posted March 8, 2011 Posted March 8, 2011 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 How should I relate the tables to show the right data on any giving date? Thank you very much.
comment Posted March 8, 2011 Posted March 8, 2011 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?
Achineche Posted March 8, 2011 Author Posted March 8, 2011 - Payments table: ·TotalAmountByPeople - People table: ·AmountOwed ·PaymentSituation: case ( people::AmountOwed - Payments::TotalAmountByPeople < 0 ; "Not fully paid" ; people::AmountOwed - Payments::TotalAmountByPeople >= 0 ; "Fully paid" )
comment Posted March 8, 2011 Posted March 8, 2011 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.
Achineche Posted March 8, 2011 Author Posted March 8, 2011 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
Recommended Posts
This topic is 5351 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now