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

    Unmatched Query to find Changed info between tables

    Click image for larger version. 
<br /><script async src=
    Name: Screenshot_002.jpg  Views: 9  Size: 93.4 KB  ID: 8948" class="thumbnail" style="float:CONFIG" />


    I am importing the updated Employee Roster information from Excel to a table called "Weekly Roster Check" (contains new info). I have a table called "Current Chit Board" that has an Employee Roster that I update every week (contains old info). I want a query to find employees who are promoted and their title has changed. then I want to run an update query to update these results to the Current Chit Board table.

    Every method I try, returns either no information or information that is not what I want.

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    First, regarding Unmatched Queries, you need to use a Left Outer Join in an Unmatched Query, not an Inner Join.

    To do this, from the screen shot you posted above, double-click on each join line between the tables and select the option that says something like "Include ALL records from 'Current Chit Board' and only those records from 'Weekly Roster Check' where the joined fields are equal." If you do it right, all you join lines will have arrows on the end pointing to your 'Weekly Roster' table. This would return all records found in the General Chit Board that are not found in the Weekly Roster Check.

    However, if you are looking for people who have had title changes, I don't think you want an Unmatched Query. You want a matched query, similar to the one you have. Try removing the criteria you currently have, they under the Title field from the General Chit Board, add the following to the Criteria row:
    Code:
    <>[Weekly Roster Check]![Title]
    This should return all records that are found in both tables, but with different titles. I think that is what you are looking for, yes?

  3. #3
    Join Date
    Aug 2012
    Posts
    4
    Quote Originally Posted by JoeM View Post
    First, regarding Unmatched Queries, you need to use a Left Outer Join in an Unmatched Query, not an Inner Join.

    To do this, from the screen shot you posted above, double-click on each join line between the tables and select the option that says something like "Include ALL records from 'Current Chit Board' and only those records from 'Weekly Roster Check' where the joined fields are equal." If you do it right, all you join lines will have arrows on the end pointing to your 'Weekly Roster' table. This would return all records found in the General Chit Board that are not found in the Weekly Roster Check.

    However, if you are looking for people who have had title changes, I don't think you want an Unmatched Query. You want a matched query, similar to the one you have. Try removing the criteria you currently have, they under the Title field from the General Chit Board, add the following to the Criteria row:
    Code:
    <>[Weekly Roster Check]![Title]
    This should return all records that are found in both tables, but with different titles. I think that is what you are looking for, yes?
    That worked great, except that I did the opposite

    Code:
    <>[Current Chit Board]![Title]
    with the whole query dependent on the Weekly Roster Check table and I got the results I wanted.

    Thank-you

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    That worked great, except that I did the opposite
    Whichever way works best for your situation. I noticed that I thought your original query attempt may have been backwards, but I couldn't be certain and worked off of that assumption.
    Either way, it is the same concept.

    Glad it all worked out for you!

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

Similar Threads

  1. Replies: 1
    Last Post: 04-30-2012, 08:42 AM
  2. Replies: 1
    Last Post: 12-08-2011, 01:52 PM
  3. Replies: 6
    Last Post: 02-10-2011, 07:09 AM
  4. Identifying Changed Fields in Two Tables
    By novice in forum Queries
    Replies: 1
    Last Post: 12-16-2010, 05:43 AM
  5. Find out changed data
    By Papote in forum Programming
    Replies: 1
    Last Post: 04-27-2009, 08:19 PM

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