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

    Data not pulling through to query


    I am trying to run a query that shows material that is on Back Order. The Back Order expression takes quantity ordered from one table and quantity received from another table and subtracts the two. The problem is that the quantity received his entered when a packing slip and material comes in and not before. In this from the material is selected from a drop down and then the quantity received is filled out following the selection. If the material has not been received yet it doesn't come through on the the query. I have a iif function that sets a 0 for any null values in received quantity but that didn't seem to help.

    Is there a way to create an option in the material drop down that pre-selects all of the items in the drop down so they are all selected or is there a better way to do this.

    Thanks in advance!!

  2. #2
    Micron is offline Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    You are using form control references to provide criteria to the query? Then on a copy of the query, test hard coded values for everything and see what you get using criteria that you are sure should work. If you get no results, there is likely something wrong with your join(s) or the basic query itself. In these situations, it's often best to start with the minimum (even if that's one table) and individually test criteria portions on each table as separate queries before joining the the tables in one. Test as you go.

    If that approach doesn't work, posting your sql might help, but it's often difficult to pinpoint the problem without understanding the data or relationships,
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 3
    Last Post: 10-28-2016, 08:43 AM
  2. Pulling data into a form from query on a web app
    By DianeArthur in forum Access
    Replies: 0
    Last Post: 08-07-2016, 10:46 AM
  3. Query pulling the same data three times.
    By halabis in forum Queries
    Replies: 10
    Last Post: 10-29-2015, 09:56 AM
  4. Query pulling data from multiple tables
    By jetman5843 in forum Queries
    Replies: 3
    Last Post: 04-08-2014, 12:27 PM
  5. Have 3 tables - problem with pulling data for query
    By wulfhund in forum Database Design
    Replies: 2
    Last Post: 08-13-2010, 05: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