Originally Posted by
Oblio
Hi,
I have an Access 2010 DB (32 Bit) running on Windows 7.
I need to get a qualification set for each person based on the values in the junction table...
t_person
PersonID Autonumber, long Integer
t_Qualifications
QualificationID Autonumber, long integer
QualificationDescription
jt_Person_Qualifications
PersonID, Foreign Key, Number
QualificationID, Foreign key, Number
Start_Date, Date/Time
End_Date, Date/Time
There are only 4 qualifications: A (ALL Persons are this qualification)
B (You must have A as well)
C (You must have A as well)
D (You MUST have qualification B in addition to D)
Short version:
Therefore, there are 6 allowable Qualification Sets:
1. A
2. A AND B
3. A AND C
4. A AND B AND C
5. A AND B AND D
6. A AND B AND C AND D
I would like to query the junction table to produce a current qualification set that I can assign a mapping icon to as well...
So, sample jt_Person_Qualifications records would be, for example:
PersonID QualificationID Qualification Set for Person=1 would be Qualification Set 5 (from above)
1 A
1 B
1 D
2 A Qualification Set for Person=2 would be Qualification Set 1
3 A Qualification Set for Person=3 would be Qualification Set 3
3 C
4 A Qualification Set for Person=4 would be Qualification Set 6
4 B
4 C
4 D
What I need is a query or expression to provide me with the person's ID and their CURRENT Qualification Set as well as a Mapping Pin Type icon.
I built a lt_Qualification Set, where I can add the mapping icon for that set, and then figured I would compare it to the jt_Person_Qualifications records somehow using an if then type of query????
The reason I am not just using the t_Qualification_Set is I need to show when there are any changes and what date they occurred on....so I would need a query to be able to calculate show which of the qualifications were added or dropped which I suspect may be more difficult to report?
Any advice would be greatly appreciated, and I apologize for the length of this ...
Oblio