I am looking for assistance in setting up correct relationships between 3 tables. (these will be the 3 main tables in my database)
before I outline the tables, one point.... Each "group" is a company that has purchased our product (health insurance) we have a group number which is a 5 digit number that identifies the company. A group may have more than one "product" with us, therefore, we have a sub-group number - for example:
company x has a group number of 12345 - they have two products with us - their full sub-group/group numbers are 00-12345 and 01-12345.
first table is called tblGroups which only contains the main group number field and the group name field.
second table is called tblActivity which has as a primary key the following fields: subgroupnum, groupnum, effectivedate, healthcovcode - this table logs in the sales and also conversions (an example of a conversion would be if someone changes their coverage type - the healthcovcode is a code that represents the specific plan
third table is called tblEfficiency which holds quality information on the paperwork that was submitted. the primary keys are groupnum, effectivedate and datereceived.
For example, we get in a new sale - we assing the group number 12345 - tblgroups will have one entry. The company purchased two types of coverage with us, therefore, there will be two records in tblActivity - one for 00-12345 and one for 01-12345.
Here comes the part I am confused about - I only want one record in the tblEfficiency table for this group. I will need to have sub-forms to link the data and I am having a problem thinking through this last part. How do I link tblActivity to tblEfficiency?
Hope that makes sense.
Thanks!!!
Fred
before I outline the tables, one point.... Each "group" is a company that has purchased our product (health insurance) we have a group number which is a 5 digit number that identifies the company. A group may have more than one "product" with us, therefore, we have a sub-group number - for example:
company x has a group number of 12345 - they have two products with us - their full sub-group/group numbers are 00-12345 and 01-12345.
first table is called tblGroups which only contains the main group number field and the group name field.
second table is called tblActivity which has as a primary key the following fields: subgroupnum, groupnum, effectivedate, healthcovcode - this table logs in the sales and also conversions (an example of a conversion would be if someone changes their coverage type - the healthcovcode is a code that represents the specific plan
third table is called tblEfficiency which holds quality information on the paperwork that was submitted. the primary keys are groupnum, effectivedate and datereceived.
For example, we get in a new sale - we assing the group number 12345 - tblgroups will have one entry. The company purchased two types of coverage with us, therefore, there will be two records in tblActivity - one for 00-12345 and one for 01-12345.
Here comes the part I am confused about - I only want one record in the tblEfficiency table for this group. I will need to have sub-forms to link the data and I am having a problem thinking through this last part. How do I link tblActivity to tblEfficiency?
Hope that makes sense.
Thanks!!!
Fred