Results 1 to 4 of 4
  1. #1
    nightangel73 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    May 2014
    Posts
    45

    Need help with query - inventory

    I would like to make a query that calculates quantity at hand of a product. I have a product table and other table that records the amount of product removed with it's orderID. The problem I have is if no product has been removed, that is if there is no orders I can't get those records in the query. I only get in the query only the records where there is associated orders.

    In the end quantity at hand is the quantity stored minus what has been withdrawn + amount that is returned.

    If nothing has been withdrawn then quantity at hand is therefore just the quantity stored.

    I would like this inventory query to show me quantity at hand for all products.



    I'll appreciate help!

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Please read this material from Allen Browne.
    Good luck.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    You want an OUTER JOIN.
    Show ALL recs in 1 tbl and some items in the other (when they exist)

    The arrow comes from the table with ALL items, and points to the table with 'some' items.

    Click image for larger version. 

Name:	outer join.png 
Views:	12 
Size:	6.9 KB 
ID:	16660

  4. #4
    nightangel73 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    May 2014
    Posts
    45

    Thumbs up Thanks!

    Quote Originally Posted by ranman256 View Post
    You want an OUTER JOIN.
    Show ALL recs in 1 tbl and some items in the other (when they exist)

    The arrow comes from the table with ALL items, and points to the table with 'some' items.

    Click image for larger version. 

Name:	outer join.png 
Views:	12 
Size:	6.9 KB 
ID:	16660

    That worked out thanks! I edited the joint type and now it does show me all the records.

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

Similar Threads

  1. Replies: 1
    Last Post: 02-21-2013, 12:18 AM
  2. Products Inventory Dilema,Add To Inventory
    By burrina in forum Forms
    Replies: 3
    Last Post: 12-02-2012, 12:10 PM
  3. Leveling inventory with a query
    By gregrlevy in forum Queries
    Replies: 1
    Last Post: 04-12-2012, 09:07 AM
  4. Query using inventory
    By Porksword in forum Queries
    Replies: 1
    Last Post: 12-02-2011, 06:02 PM
  5. Running an inventory query
    By EDEd in forum Queries
    Replies: 1
    Last Post: 10-08-2010, 11:54 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