Results 1 to 5 of 5
  1. #1
    xmohamedx is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2016
    Posts
    3

    query to return all store items

    I am trying to create a query in a store database between 2 tables (one to many relationship) the first table contains items and the initial quantities, the second the purchased item by date
    when i try to make a query between the 2 tables by totals , the query just return the items that have been already purchased , but i want to return all the items in the store even i have no purchasing order...
    the file have the example


    Your time and help will be greatly appreciated

    thanks a lot
    Attached Files Attached Files

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You need to use a Left Join in order that records from your first table without matching records in your second table are not dropped.
    See: http://www.techonthenet.com/access/queries/joins2.php

  3. #3
    xmohamedx is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2016
    Posts
    3
    Quote Originally Posted by JoeM View Post
    You need to use a Left Join in order that records from your first table without matching records in your second table are not dropped.
    See: http://www.techonthenet.com/access/queries/joins2.php
    Many thanks JoeM, that works perfectly

  4. #4
    xmohamedx is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Feb 2016
    Posts
    3
    that works perfectly, many thanks JoeM

  5. #5
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You're welcome.

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

Similar Threads

  1. Replies: 2
    Last Post: 05-21-2014, 06:16 AM
  2. Replies: 9
    Last Post: 04-01-2014, 05:06 PM
  3. Query to return blank or null items.
    By mulefeathers in forum Queries
    Replies: 3
    Last Post: 10-24-2013, 12:45 PM
  4. Replies: 1
    Last Post: 07-26-2013, 06:01 AM
  5. Replies: 4
    Last Post: 04-18-2012, 12:09 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