Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2012
    Posts
    4

    Find matching data between 2 queries

    Hello,

    I am managing a tool room and one of my tasks is to update a chit board where people sign out their tools. I have managed to make a query to find New Employees and one to find Terminated Employees. I have also made a query to find the matching employees between these two queries.

    My problem is that we employ both contractors and direct employees. When a contractor is hired on directly, their name shows up in both the New list and the Terminated list.

    What I want to do is have a separate query that shows contractors who went direct and not have these employees show up in the other 2 queries.

    Both queries are unmatched query that compare the "Current Chit Board" table to the "Weekly Roster Check" table. The first query called "New Employees" displays the data from the "Weekly Roster Check" table where Employee Number from "Current Chit Board" Is Null. The second query called "Terminated Employees" is the exact oposite. The third query I have is called "Contract to Direct" compares the "New Employees" query to the "Terminated Employees" Query with a "fields from both tables are equal" join type.



    The problem is when I try to do an unmatched between either the New or Terminated Emplyees queries and the Contract to Direct query, I get a Circular Reference warning and it doesn't execute.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Show us your tables and relationships; research Normalization

    read this article on Entity Relationship Diagramming
    http://www.rogersaccesslibrary.com/T...lationship.zip

  3. #3
    Join Date
    Aug 2012
    Posts
    4
    Quote Originally Posted by orange View Post
    Show us your tables and relationships; research Normalization

    read this article on Entity Relationship Diagramming
    http://www.rogersaccesslibrary.com/T...lationship.zip
    I got the Query to work, but for the sake of other people who may have the same issue, I will show my tables and the solution.

    Click image for larger version. 

Name:	Screenshot_001.jpg 
Views:	3 
Size:	170.3 KB 
ID:	8947

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 8
    Last Post: 05-05-2012, 02:01 PM
  2. Replies: 3
    Last Post: 05-01-2012, 01:57 PM
  3. Replies: 1
    Last Post: 10-24-2011, 08:01 AM
  4. Replies: 1
    Last Post: 08-11-2011, 11:33 AM
  5. Replies: 6
    Last Post: 02-10-2011, 07:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums