Family membership implementation
Posted: Fri Dec 24, 2010 12:37 pm
Is it possible to implement the following:
I have 2 tables - Members and Memberships.
In the Memberships table there are two fields: (1) Member, linked to one Members; (2) Family Members, linked to many Members.
If the Membership Type is 'Family' the primary (paying) member is in the Member field, and the rest of the family members are in the Family Members list.
In the Members edit layout, I have a tab to show Memberships. For a single members, it will show his current Memberships record and the history of previous memberships.
What I want:
If the Member I am accessing is a Family member, but not the Primary member, (meaning that the search done in the previous scenario will fail since this member will not be found in any Memberships:Member fields) I want the system to lookup the Family Members field in Memberships, find the Membership records where this member is part of the family, and have those displayed in this member's Memberships tab.
Also, since we are talking about the whole history of the Memberships for this member, it is possible that some of them were Family and some are not, so either way, we have to look at both, and pull all results.
In programming talk:
- look for member in Memberships:Member
- get temp list of results
- look for member in Memberships:Family Members
- get list of results
- merge with first list
- display combined list
Thanks for the help,
Shai
I have 2 tables - Members and Memberships.
In the Memberships table there are two fields: (1) Member, linked to one Members; (2) Family Members, linked to many Members.
If the Membership Type is 'Family' the primary (paying) member is in the Member field, and the rest of the family members are in the Family Members list.
In the Members edit layout, I have a tab to show Memberships. For a single members, it will show his current Memberships record and the history of previous memberships.
What I want:
If the Member I am accessing is a Family member, but not the Primary member, (meaning that the search done in the previous scenario will fail since this member will not be found in any Memberships:Member fields) I want the system to lookup the Family Members field in Memberships, find the Membership records where this member is part of the family, and have those displayed in this member's Memberships tab.
Also, since we are talking about the whole history of the Memberships for this member, it is possible that some of them were Family and some are not, so either way, we have to look at both, and pull all results.
In programming talk:
- look for member in Memberships:Member
- get temp list of results
- look for member in Memberships:Family Members
- get list of results
- merge with first list
- display combined list
Thanks for the help,
Shai