Results 1 to 3 of 3
  1. #1
    MTSPEER is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    283

    Delete Query


    Hello guys, I'm trying to make a delete query where I have two tables, PGMF and LICS. They are joined by the field Group_Number. I just want to make a delete query to delete the unmatched groupnumbers in the LICS table from the PGMF table. Thank you

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    This should do it:
    Code:
    DELETE LICS.*
    FROM LICS
    WHERE LICS.GROUP_NUMBER NOT IN 
    (SELECT PGMF.GROUP_NUMBER
    FROM PGMF);

  3. #3
    MTSPEER is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    283
    Thanks Joe! I actually just figured it out before I checked your post. but thank you!

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

Similar Threads

  1. Replies: 6
    Last Post: 12-03-2014, 10:28 PM
  2. delete query
    By Dick60 in forum Queries
    Replies: 6
    Last Post: 11-26-2014, 06:03 AM
  3. Replies: 2
    Last Post: 01-24-2012, 02:16 PM
  4. Trying to Delete record using delete query
    By MooseOTL in forum Access
    Replies: 13
    Last Post: 10-04-2011, 02:30 AM
  5. Replies: 11
    Last Post: 03-30-2011, 01:08 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