Can you give me some advice about table structure. Currently I have:
INTRODUCER IntroducerID & name, address & contact details for introducer including their target. A separate form will be based on this table.
CUSTOMER CustomerID, IntroducerID & name, address, contact details & personal details (occupation, income, date of birth etc. A separate form will be based on this table.
CHILDREN ChildrenID, CustomerID & name & date of birth. This will be a subform within the Customer Form.
MARKETING PROJECT: MarketingProjID & name & detail about individual marketing projects. A separate form will be based on this table.
MARKETING DETAILS: MarketingDetailsID, CustomerID, MarketingProjID & date. This will be a subform within the Customer Form and also a separate form listing the customers within each marketing project.
It is now I have some doubts. I had in mind:
PRODUCTS ProductID, Product Area (this will be either Liability, Heath or General), Product type (there are about 10 types for each product area). A separate form will be based on this table. Should this be two tables?
Each of the three product area does have varying information, which needs to be recorded. It is consistent for each product area though. For example Liability has a set of fields, health has a different set & so does General.
On the Customer Form there will be a three control forms which open forms for Liability, Heath and General. They will be linked to the CustomerID and show only the customers own Product types they may have. The customer could have any number of Product Types within each of these Product Areas and more Product Area could apply. For example, a customer could have Liabilty products A, B & C, Health products Y & Z and General products T,G,H & D. Each product will have a commission earned amount. Whilst there is an Introducer associated with the Customer records, they may be a different Introducer associated with each Product type.
I did originally consider three tables for each product area, and not have the Products table mentioned above:
LIABILITY Liability ID, IntroducerID, ClientID & fields associated with liability including commission
HEALTH Health ID, IntroducerID, ClientID & fields associated with liability including commission
GENERAL General ID, IntroducerID, ClientID & fields associated with liability including commission
However, the forms worked fine but I had problems building a query which produced a report with the following headings:
Introducer – Liability Commission – Health Commission – General Commission – Total commission – Average Commission - Target – Variance against target.
I can get it to work for one product area but not all three combined.
I could combine all of the fields for the product types in one table rather than three which may assist with the commission calculations. But I am conscious that only a third for a given Product type ID will be filled at any one time. Perhaps I am worrying unduly. I know when I create the forms I need only add those appropriate to each Product area.
I am new to Access but recognise the importance of getting table structure correct first. Should my table structure for the Product details be in one table or one for each product area? Apologies if I have not explained well - getting confused myself!
Any guidance would be welcome. Thank you.
INTRODUCER IntroducerID & name, address & contact details for introducer including their target. A separate form will be based on this table.
CUSTOMER CustomerID, IntroducerID & name, address, contact details & personal details (occupation, income, date of birth etc. A separate form will be based on this table.
CHILDREN ChildrenID, CustomerID & name & date of birth. This will be a subform within the Customer Form.
MARKETING PROJECT: MarketingProjID & name & detail about individual marketing projects. A separate form will be based on this table.
MARKETING DETAILS: MarketingDetailsID, CustomerID, MarketingProjID & date. This will be a subform within the Customer Form and also a separate form listing the customers within each marketing project.
It is now I have some doubts. I had in mind:
PRODUCTS ProductID, Product Area (this will be either Liability, Heath or General), Product type (there are about 10 types for each product area). A separate form will be based on this table. Should this be two tables?
Each of the three product area does have varying information, which needs to be recorded. It is consistent for each product area though. For example Liability has a set of fields, health has a different set & so does General.
On the Customer Form there will be a three control forms which open forms for Liability, Heath and General. They will be linked to the CustomerID and show only the customers own Product types they may have. The customer could have any number of Product Types within each of these Product Areas and more Product Area could apply. For example, a customer could have Liabilty products A, B & C, Health products Y & Z and General products T,G,H & D. Each product will have a commission earned amount. Whilst there is an Introducer associated with the Customer records, they may be a different Introducer associated with each Product type.
I did originally consider three tables for each product area, and not have the Products table mentioned above:
LIABILITY Liability ID, IntroducerID, ClientID & fields associated with liability including commission
HEALTH Health ID, IntroducerID, ClientID & fields associated with liability including commission
GENERAL General ID, IntroducerID, ClientID & fields associated with liability including commission
However, the forms worked fine but I had problems building a query which produced a report with the following headings:
Introducer – Liability Commission – Health Commission – General Commission – Total commission – Average Commission - Target – Variance against target.
I can get it to work for one product area but not all three combined.
I could combine all of the fields for the product types in one table rather than three which may assist with the commission calculations. But I am conscious that only a third for a given Product type ID will be filled at any one time. Perhaps I am worrying unduly. I know when I create the forms I need only add those appropriate to each Product area.
I am new to Access but recognise the importance of getting table structure correct first. Should my table structure for the Product details be in one table or one for each product area? Apologies if I have not explained well - getting confused myself!
Any guidance would be welcome. Thank you.