Results 1 to 4 of 4
  1. #1
    KRegal is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Posts
    4

    Select items NOT not present

    I do most of my queries in design view, and I am unsure how to create this one (I believe it requires SQL). I would like to know all of the parts that are not on a given purchase order. I think the difference between a set containing all parts and a second set containing only parts on the purchase order is the correct way to approach this.



    The only solution I can think to accomplish this is to select the two sets, then iterate through the parts on the purchase order and delete those parts from the full list.

    Is there some sort of SQL operation that can perform this?

  2. #2
    KRegal is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Posts
    4
    Just one not.

  3. #3
    lfpm062010 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Location
    US
    Posts
    415
    You are on the right track. If you can have a query that contains all the parts and a second query that contain the part on the purchase order. If you use all parts left join the part on purchase order and select the part of purchase order that is NULL then you will have the part that is not on the purchase order.

  4. #4
    KRegal is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jun 2014
    Posts
    4
    Thank you! I will read into the different types of joins. Access' builder abstracts all of that away

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

Similar Threads

  1. Replies: 2
    Last Post: 05-21-2014, 01:16 PM
  2. Replies: 12
    Last Post: 01-08-2014, 05:15 PM
  3. Selecting items in multi-select list box
    By chronister in forum Access
    Replies: 3
    Last Post: 08-25-2013, 03:33 AM
  4. Replies: 3
    Last Post: 05-15-2011, 10:52 PM
  5. Select multiple items from list box
    By sharmaprashant22 in forum Queries
    Replies: 2
    Last Post: 05-05-2011, 12:18 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