Results 1 to 2 of 2
  1. #1
    mpreston14 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2013
    Posts
    41

    Delete Unmatched Query Results


    First, I want to thank everyone that participates on these forums, you have been a wealth of information and made building this db so much easier for me. I have also searched but havent found something to what I am trying to do so please forgive me if its obvious....

    In my db I have table set up to import basically the same data from 3 disparate sources. I also have a "master people" table where "people" are detailed. One of my import files has data on people from another state that I do not need to include in my database, but "state" is not a field in the data. So before I take the raw data and convert it via my queries for what I need, I want to remove the other states people from the import table.

    I have created an unmatched query that pulls first,middle, last names from the import table and matches against the "Master People" table, it works great( people ID is assigned in the "Master People" table so I dont have an ID# to go with from the imported data)..

    My question is how do I take those query results and apply a delete to the import table? I've managed to do an append based on another similar query, but delete is a mental block for me!

    I am not familiar with writing SQL, but can generally read it, so I need to be able to do it via design view if at all possible.

    I appreciate any help you can provide.

    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Review http://www.techonthenet.com/sql/delete.php

    Sorry, probably will have to type in SQL View.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 1
    Last Post: 04-26-2012, 09:13 PM
  2. Replies: 1
    Last Post: 04-23-2012, 10:40 AM
  3. Query and unmatched records
    By jlgray0127 in forum Forms
    Replies: 1
    Last Post: 03-19-2012, 05:56 PM
  4. Replies: 1
    Last Post: 12-08-2011, 01:52 PM
  5. Unmatched query on 1 table
    By tmcrouse in forum Access
    Replies: 7
    Last Post: 06-01-2011, 08:38 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