What I am ultimately attempting to do is create a list of chapter members and officers without duplicating.
Let me explain how the tables are organized. There are 5 tables pertinent to this process. Please note that I am not able to change the structure of the tables without destroying bunches of other functions. The obvious fields relate to each other.
Personal Data - contains ID, Name, Address.
Category Link - Contains ID and CatID
Categories - contains CatID, CatName
Office Link - contains ID, and OfficeID
Office - Contains Office, OfficeID
If the person is a Chapter Member, they are associated with the Category "Chapter Member" through the Category Link table. If the person is an officer in his/her chapter, they are associated with their office through the Office Link table. Of course all chapter officers are chapter members.
What I have attempted so far is to make two queries and then join them with the UNION statement in SQL.
The first query contains all 5 tables an the following fields:
Categories
----------
Category
Criteria = "Chapter Member"
Personal Data
-------------
*All
Office
------
Office
The second query contains 3 tables and 1 defined field so that the same number of columns appear
Categories
----------
Category
Criteria = "Chapter Member"
Personal Data
-------------
*All
Office:Null
-----------
Of course the first query finds only chapter officers and the second query finds all chapter members. When joined together the result is that if a person is an officer their name is duplicated. How can I eliminate this duplication? I know I can eliminate it by not showing the Office field but I need to know what office the person holds. Any suggestions?
Thanks in Advance for your help.
Let me explain how the tables are organized. There are 5 tables pertinent to this process. Please note that I am not able to change the structure of the tables without destroying bunches of other functions. The obvious fields relate to each other.
Personal Data - contains ID, Name, Address.
Category Link - Contains ID and CatID
Categories - contains CatID, CatName
Office Link - contains ID, and OfficeID
Office - Contains Office, OfficeID
If the person is a Chapter Member, they are associated with the Category "Chapter Member" through the Category Link table. If the person is an officer in his/her chapter, they are associated with their office through the Office Link table. Of course all chapter officers are chapter members.
What I have attempted so far is to make two queries and then join them with the UNION statement in SQL.
The first query contains all 5 tables an the following fields:
Categories
----------
Category
Criteria = "Chapter Member"
Personal Data
-------------
*All
Office
------
Office
The second query contains 3 tables and 1 defined field so that the same number of columns appear
Categories
----------
Category
Criteria = "Chapter Member"
Personal Data
-------------
*All
Office:Null
-----------
Of course the first query finds only chapter officers and the second query finds all chapter members. When joined together the result is that if a person is an officer their name is duplicated. How can I eliminate this duplication? I know I can eliminate it by not showing the Office field but I need to know what office the person holds. Any suggestions?
Thanks in Advance for your help.