Hey guys,
Ok, here is the problem:
I have a query based on a couple of tables. The first table contains employee ID numbers, names, etc. The second table contains information about the employees' saving plan(s) - this can be 401K, 403B (like a 401K for not for profit companies), or a pension plan. The second table will have multiple entries for the same person (if the employee contributes to the pension plan and the 401K). What I need is a report that contains the employee information and if they contribute to a 401K, a column containing "yes" and if they do not contribute to the pension plan, a "no." I have put in the iif statement but it will return multiple records, on saying yes and one saying no because one record will be for their contributions to the pension plan and one record will be their contribution to the 401K.
How can I return just one record for each employee with a "Yes" or "No"??
Any help you could offer would be truly appreciated!
DNSquires
Ok, here is the problem:
I have a query based on a couple of tables. The first table contains employee ID numbers, names, etc. The second table contains information about the employees' saving plan(s) - this can be 401K, 403B (like a 401K for not for profit companies), or a pension plan. The second table will have multiple entries for the same person (if the employee contributes to the pension plan and the 401K). What I need is a report that contains the employee information and if they contribute to a 401K, a column containing "yes" and if they do not contribute to the pension plan, a "no." I have put in the iif statement but it will return multiple records, on saying yes and one saying no because one record will be for their contributions to the pension plan and one record will be their contribution to the 401K.
How can I return just one record for each employee with a "Yes" or "No"??
Any help you could offer would be truly appreciated!
DNSquires