Solved

Query table and only return results NOT in another table in ACCESS

Posted on 2014-11-25
2
179 Views
Last Modified: 2014-11-25
I have 2 tables Humres with a field em_id and another table (dbo_emptrain) that has a field empID.  The Humres table has ALL employees listed in it, the emptrain table has only employees that we have assigned something in this database.  I want to run a query that shows me only employees that haven't been assigned to the emptrain table.
0
Comment
Question by:sharris_glascol
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 37

Accepted Solution

by:
PatHartman earned 500 total points
ID: 40464495
If you don't know how to create a left join, then use the "unmatched" wizard to create the query for you.

Select ...
From tblA Left Join tblB On tblA.em_id = tblB.empID
Where tblB.empID Is Null;
0
 

Author Closing Comment

by:sharris_glascol
ID: 40464511
Thanks I have done numerous queries and feel dumb this was so simple.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question