C
Confused
I'm trying to open a form and filter the records based on a value in
CboEmployees. The Where Clause is what I added to SQL Statement and it asks
me for the parameter when I try to run it instead of filtering based on the
value of CboEmployees. I had it set up to where I added
tblEmployeeAssignments and added EMployeeID to the query grid and added
[Forms]![CLECS2WContacts]![cboemployees]. This works but it pulls too many
duplicates, which is what I'm trying to avoid by using a subquery.
Here is the statement if anyone knows how to modify it to select the records
that match only that employee:
SELECT CLECS2.[CLEC Name], Contacts.[First Name], Contacts.[Last Name],
Contacts.EmailAddress, Contacts.[Send to?], Contacts.[CLEC ID],
Contacts.[Contact ID]
FROM CLECS2 RIGHT JOIN Contacts ON CLECS2.CLECID = Contacts.[CLEC ID] where
tblEmployeeAssignments.employeeID = Forms!CLECS2wContacts!cboemployees;
CboEmployees. The Where Clause is what I added to SQL Statement and it asks
me for the parameter when I try to run it instead of filtering based on the
value of CboEmployees. I had it set up to where I added
tblEmployeeAssignments and added EMployeeID to the query grid and added
[Forms]![CLECS2WContacts]![cboemployees]. This works but it pulls too many
duplicates, which is what I'm trying to avoid by using a subquery.
Here is the statement if anyone knows how to modify it to select the records
that match only that employee:
SELECT CLECS2.[CLEC Name], Contacts.[First Name], Contacts.[Last Name],
Contacts.EmailAddress, Contacts.[Send to?], Contacts.[CLEC ID],
Contacts.[Contact ID]
FROM CLECS2 RIGHT JOIN Contacts ON CLECS2.CLECID = Contacts.[CLEC ID] where
tblEmployeeAssignments.employeeID = Forms!CLECS2wContacts!cboemployees;