Jeremy Campbell
asked on
How to filter a query using a field from another table in access?
I have a table called EmpBasic which lists Employees. I want to run a query on that table that gets any ebEmpID filtered out based on the EmpIDs found in tblFilter.
How can I use the filter table tblFilter to filter out my query on EmpBasic?
Thanks in advance!
How can I use the filter table tblFilter to filter out my query on EmpBasic?
Thanks in advance!
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
The tblFilter actually contains a list of the EmpIDs I don't want to appear in the query.. I just changed the first example to NOT IN.
That does the job though!
That does the job though!
<< to filter out my query on EmpBasic? >>
I was reading that backwards. Sorry about that.
Glad you worked it out.
I was reading that backwards. Sorry about that.
Glad you worked it out.
ASKER
No problem.. It got the job done!
Thanks for the prompt help!
Thanks for the prompt help!
SELECT EmpBasic .* FROM EmpBasic INNER JOIN tblFilter ON EmpBasic.ebEmpID = tblFilter.EMPID