Results 1 to 2 of 2
  1. #1
    accessLearn is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Jul 2015
    Posts
    11

    How to check if the record exists in one table but not in another

    I have a table tblA with emplid, joindt and jointm and department.
    I have another table TblB with emplid, joindt and jointm and department.


    tblA has 4 rows with same emplid and differnt join date+jointm and tblB has 3 rows with same info.
    How can I write a query in access to check which row is missing from from TblB
    I tried below statement but not getting anything
    select * from tblA where notexists (select joindate+jointm from tblB where tblA.emplid=tblB.emplid )

    Thanks,


    Blyzzard

  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,521
    Try the unmatched query wizard.
    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. Replies: 9
    Last Post: 12-05-2014, 03:39 PM
  2. Replies: 33
    Last Post: 09-16-2014, 12:47 PM
  3. Check if record exists, Check Number
    By burrina in forum Forms
    Replies: 9
    Last Post: 01-06-2013, 03:49 PM
  4. Replies: 1
    Last Post: 03-06-2012, 06:45 PM
  5. Check to see if record id exists in joined table
    By csoseman in forum Programming
    Replies: 1
    Last Post: 08-18-2011, 01:06 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