Results 1 to 12 of 12
  1. #1
    Join Date
    Jun 2012
    Posts
    6

    Question Having trouble with unmathced query wizard

    I have two tables, one with the same exact info as the other minus a few rows. I'm trying to use access to find which rows are missing. However, when I create a new query and do the "Find Unmatched Query Wizard" thing it doesn't yield all of the missing rows. I deleted 13 rows and it shows only 8 that I'm missing.

    My question is, why isn't it showing the other five rows? And how can I get it to show them?



    I'm using this tutorial btw:
    http://office.microsoft.com/en-us/ac...010205132.aspx

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    What is the SQL of your query? Are the records in the "base" table?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Join Date
    Jun 2012
    Posts
    6
    Quote Originally Posted by pbaldy View Post
    What is the SQL of your query? Are the records in the "base" table?
    I have no idea as to either of those questions. My boss just told me to do this in Access and here I am.

  4. #4
    Join Date
    Jun 2012
    Posts
    6
    SELECT [6/11].Field2
    FROM [6/11] LEFT JOIN [6/18] ON [6/11].[Field2] = [6/18].[Field2]
    WHERE ((([6/18].Field2) Is Null));

    Is what SQL view shows me. 6/12 and 6/18 are the names of my tables.

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    If you're looking at your query in design view, you can change to SQL view via an icon on the ribbon.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    So are the desired records in the 6/11 table? The unmatched query should find records where Field2 exists in 6/11 but not in 6/18.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    Join Date
    Jun 2012
    Posts
    6
    Quote Originally Posted by pbaldy View Post
    So are the desired records in the 6/11 table? The unmatched query should find records where Field2 exists in 6/11 but not in 6/18.
    Well what I have is a list of names. I need to compare the list of names for this week with that of last week's, and find out which names aren't in the new weeks list. So neither table has desired records, they're just records. But table 6/18 has less names than 6/11, and I need access to show me which names those are out of 650. I have to do this every week and for some reason my boss wants it done in access.

    Access is showing me only 8 out of the 13 I should be missing. Not sure why.

  8. #8
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Can you post the db here? And if so, an example of a record that should be returned that isn't?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  9. #9
    Join Date
    Jun 2012
    Posts
    6
    Quote Originally Posted by pbaldy View Post
    Can you post the db here? And if so, an example of a record that should be returned that isn't?
    I'm afraid I can't, it has info that my work would not be happy with me sharing.

    An example though would be just someones name, last name, first. I have another identifier I tried using to compare, which is a few unique numbers. When I used those, despite using the numbers instead of names, it wouldn't return the same exact rows! So I have no idea.

  10. #10
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    We certainly don't want anything private posted here. All I can think of is that there is a record in the 6/18 table for each of the other 5. That query technique is pretty commonly used, and is reliable. Perhaps you can post a sanitized sample db if you're still stuck? This type of thing is much easier to debug when you can put your hands on it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  11. #11
    Join Date
    Jun 2012
    Posts
    6
    Quote Originally Posted by pbaldy View Post
    We certainly don't want anything private posted here. All I can think of is that there is a record in the 6/18 table for each of the other 5. That query technique is pretty commonly used, and is reliable. Perhaps you can post a sanitized sample db if you're still stuck? This type of thing is much easier to debug when you can put your hands on it.
    SONUVABITCH.

    Further down somehow, even though the entire list is alphabetical, there are repeats randomly placed in the rows. Sorry for the trouble. Thanks. How ridiculous.

  12. #12
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    LOL! Glad you got it sorted out, and welcome to the site by the way.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Help Write Unmatched Query (wizard not working)
    By taimysho0 in forum Queries
    Replies: 1
    Last Post: 05-14-2012, 12:49 PM
  2. Find Query Wizard Missing
    By Edgy in forum Queries
    Replies: 1
    Last Post: 03-26-2011, 09:37 AM
  3. No Summary option in Query Wizard
    By LilMissAttack in forum Queries
    Replies: 1
    Last Post: 11-15-2010, 04:32 PM
  4. Trouble with Query
    By jbarrum in forum Access
    Replies: 1
    Last Post: 01-13-2010, 04:10 PM
  5. Query Wizard question
    By kcjkwm in forum Queries
    Replies: 2
    Last Post: 11-09-2009, 07:20 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