R
Rick
I am trying to build a query pulling data from two tables,
tblMember and tblEPR with a one-to-may relationship. On a
form, I have a drop box that will use this query to pull a
record and add it to the form. Here is my problem:
1. This form is for adding a new performance report
2. Limit records to individuals who currently don't have a
performance report being worked (can't have two
peformance reports being worked at the same time.)
3. No multiple records (many individuals have mutliple
performance reports-employees get one each year so if a
memeber has received 3 performance reports, they show
up in the query three times.)
Here is the SQL:
SELECT tblMember.[Member Last Name], tblMember.[Member
First Name], tblEPR.[Closed out]
FROM tblMember LEFT JOIN tblEPR ON tblMember.MemberID =
tblEPR.MemberID
WHERE (((tblEPR.[Closed out]) Is Null Or (tblEPR.[Closed
out])="Yes"))
ORDER BY tblMember.[Member Last Name];
Any thoughts or do I need to include additional
information? Thanks in advance!!!!!!
tblMember and tblEPR with a one-to-may relationship. On a
form, I have a drop box that will use this query to pull a
record and add it to the form. Here is my problem:
1. This form is for adding a new performance report
2. Limit records to individuals who currently don't have a
performance report being worked (can't have two
peformance reports being worked at the same time.)
3. No multiple records (many individuals have mutliple
performance reports-employees get one each year so if a
memeber has received 3 performance reports, they show
up in the query three times.)
Here is the SQL:
SELECT tblMember.[Member Last Name], tblMember.[Member
First Name], tblEPR.[Closed out]
FROM tblMember LEFT JOIN tblEPR ON tblMember.MemberID =
tblEPR.MemberID
WHERE (((tblEPR.[Closed out]) Is Null Or (tblEPR.[Closed
out])="Yes"))
ORDER BY tblMember.[Member Last Name];
Any thoughts or do I need to include additional
information? Thanks in advance!!!!!!