
Originally Posted by
Dnallov
I now have a question on how I should handle duplicates. My DB will need to handle them on several different tables, one I have come across straight away is the following...
> I'm adding new 'directors' to my table as and when I add new 'companies' to my DB. There will be some 'companies' that share 'directors', but as I add these directors to the DB, it will create two different records (but with the same name & DOB),
I am confused...
Why would there be duplicates? There should be only one unique director name with a DOB in tblDirectors, just as there would only be one unique company name in tblCompanies
Since one director can be associated with many companies, there could/would be multiple records in the junction table jctCompanyDirector.
So exactly which tables have the duplicates??

Originally Posted by
Dnallov
<snip> whereas I want to check what companies belong to the individual 'director'.
for a report, I would use a query like
Code:
SELECT tblDirectors.DirLastname, tblDirectors.DirFirstName, tblCompanies.Companyname, jctCompanyDirector.Active
FROM tblDirectors INNER JOIN (tblCompanies INNER JOIN jctCompanyDirector ON tblCompanies.Company_PK = jctCompanyDirector.Company_FK) ON tblDirectors.Director_PK = jctCompanyDirector.Director_FK
WHERE (((jctCompanyDirector.Active)=True))
ORDER BY tblDirectors.DirLastname, tblDirectors.DirFirstName;
Use the report sort/grouping.....
Or I would use a main form/sub form arraignment.
Main form record source (in continuous form view) would be a query "qryDirectors":
Code:
SELECT tblDirectors.Director_PK, tblDirectors.DirLastname, tblDirectors.DirFirstName, tblDirectors.DOB
FROM tblDirectors
ORDER BY tblDirectors.DirLastname, tblDirectors.DirFirstName;
The subform (in the footer) record source (in continuous form view) would be like "qrysfCompany":
Code:
SELECT tblCompanies.Companyname, jctCompanyDirector.Active, jctCompanyDirector.Director_FK
FROM tblCompanies INNER JOIN jctCompanyDirector ON tblCompanies.Company_PK = jctCompanyDirector.Company_FK;
Don't forget to set the linking fields between the main form/ sub form.
Access might complain about both form being in continuous form view but just ignore the warning and set both forms to continuous form view.