S
Stephanie
Hi. I think I have a problem with my table set up.
My main form is Individuals (based on tblContacts)and it has a subform set
upf or payables.
The payables set up is: form called DuesLineItem (based on tblDuesLineItem)
which has a subform called PaymentsLineItem (based on tblPaymentsLineItem).
This allows me to have dues each year and show the pertinent payments (Dues
is the one, Payments is the many).
tblDuesLineItem
DuesItemID
TypeID (Member or Board dues)
ContactID
AmountDue
DateCreated
tblPaymentsLineItem
PaymentItemID
DuesItemID
TypeID (2 is paying by check, 6 is "cashed-in" hours)
Amount
DateRemitted
I cleaned out both tables so that I could see what entries are being posted
and something isn't right. I have 2 Contacts that are related, paying dues
together. I set up one Contact to owe $99 ($93 as a check and 6 as
"cashed-in" hours), and one Contact to owe $1 (1 "cashed-in" hour). So I
would expect 2 Dues entries and 3 Payments entries. Instead, here's what I
have in the DuesLineItem table:
DuesItemID: 15 AmountDue $99.
Associated PaymentItemID: 854 TypeID: 2 Amount: $93.
Associated PaymentItemID: 859 TypeID: blank (should be 6) Amount: blank
(should be 6 hours)
DuesItemID: 16 AmountDue $1
Associated PaymentItemID: 857 TypeID: 6 Amount: 1 (1 hour)
Then looking at the PaymentsLineItem table, I have a huge number of entries,
rather than the three I would expect:
tblPaymentsLineItem:
PaymentItemID, DuesItemID, TypeID, Amount
853, blank, 6, $6
854, 15, 2, $93
855, blank, blank, blank
856, blank, blank, blank
857, 16, 6, $1
858, blank, blank, blank
859, 15, blank, blank
860-899, blank, blank, blank
Oh, my! What ever have I done wrong with my database design?!
I appreciate your help- Thanks!
My main form is Individuals (based on tblContacts)and it has a subform set
upf or payables.
The payables set up is: form called DuesLineItem (based on tblDuesLineItem)
which has a subform called PaymentsLineItem (based on tblPaymentsLineItem).
This allows me to have dues each year and show the pertinent payments (Dues
is the one, Payments is the many).
tblDuesLineItem
DuesItemID
TypeID (Member or Board dues)
ContactID
AmountDue
DateCreated
tblPaymentsLineItem
PaymentItemID
DuesItemID
TypeID (2 is paying by check, 6 is "cashed-in" hours)
Amount
DateRemitted
I cleaned out both tables so that I could see what entries are being posted
and something isn't right. I have 2 Contacts that are related, paying dues
together. I set up one Contact to owe $99 ($93 as a check and 6 as
"cashed-in" hours), and one Contact to owe $1 (1 "cashed-in" hour). So I
would expect 2 Dues entries and 3 Payments entries. Instead, here's what I
have in the DuesLineItem table:
DuesItemID: 15 AmountDue $99.
Associated PaymentItemID: 854 TypeID: 2 Amount: $93.
Associated PaymentItemID: 859 TypeID: blank (should be 6) Amount: blank
(should be 6 hours)
DuesItemID: 16 AmountDue $1
Associated PaymentItemID: 857 TypeID: 6 Amount: 1 (1 hour)
Then looking at the PaymentsLineItem table, I have a huge number of entries,
rather than the three I would expect:
tblPaymentsLineItem:
PaymentItemID, DuesItemID, TypeID, Amount
853, blank, 6, $6
854, 15, 2, $93
855, blank, blank, blank
856, blank, blank, blank
857, 16, 6, $1
858, blank, blank, blank
859, 15, blank, blank
860-899, blank, blank, blank
Oh, my! What ever have I done wrong with my database design?!
I appreciate your help- Thanks!