Results 1 to 2 of 2
  1. #1
    halnurse is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2016
    Posts
    22

    Force values (or null) in qry

    I have a table that holds all of the information for all of the materials that a project will need. As these materials are received another table is filled out with how much of the material was received, what the packing slip number was... The second table has a drop down of all of the material from the first table and then the received quantity is just a number field. When I run a qry for the two fields, only the material that has been selected in the second table shows as well as the value entered for received quantity. Is there a way to show all of the "material" from table 1 and just have a null value for the received quantity from the table 2 in the query?



    For a little more background: I am trying to have a calculated field later in the qry that takes the quantity ordered and subtracts the quantity received to give a value for "Back Order". With a null value I think I am able to write a IsNull Function to make the value a 0 in a separate column.

    Thank you

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,127
    Use an OUTER (or LEFT) JOIN to get all records from table 1 together with matching records from table 2

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

Similar Threads

  1. Replies: 7
    Last Post: 09-25-2017, 06:59 AM
  2. Replies: 2
    Last Post: 04-17-2017, 01:40 PM
  3. Replies: 7
    Last Post: 12-04-2013, 01:55 PM
  4. How To force a Null if Criteria doesn't exisit
    By Jerseynjphillypa in forum Queries
    Replies: 2
    Last Post: 07-19-2012, 01:18 PM
  5. Finding the Max Date and Null Values if Null
    By SpdRacerX in forum Queries
    Replies: 1
    Last Post: 02-03-2012, 06:29 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