Results 1 to 5 of 5
  1. #1
    joedean6 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2015
    Posts
    3

    Not all data being pulled with queries

    Hey everyone,



    I am new to access and need some help!

    I have two sets of data I am trying to "combine" through queries. One is shipment data and the other is shipment costs. Now, I was able to create a relationship through the Shipment ID's so I can run the query, but not all the shipments are being returned. I believe this is because I wasn't invoiced on some shipments, so that shipment ID never showed up in the cost report I run. Now, my question is, how can i get the query to pull all the shipment data even if I was not invoiced yet?

    Any help would be appreciated!

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Tell us about your database in simple business terms (no access jargon). What do the tables represent? How are the tables related?
    What exactly do you want the query to do?
    Show us the sql for your query.

  3. #3
    joedean6 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2015
    Posts
    3
    One Table is Shipment history. The other table is the costs related to the shipments.

    What I want is for all the shipment data to be shown even if there are no costs related to it yet.

    SQL:
    SELECT [jan ser].*, BAF.[Transfer Amount], [Transfer Amount]/[Total Miles] AS [Transfer CPM], BAF.[Transfer Fuel], BAF.[Invoice Amount], BAF.[DefEst Freight], BAF.[Actual Freight], BAF.[Estim Freight], BAF.[Freight - Congestion], BAF.[Freight - Detention], BAF.[Freight - Expedited], BAF.[Freight - Fuel Surch], BAF.[Freight - Layover Ch], BAF.[Freight - Line Haul], [Freight - Line Haul]/[Total Miles] AS [SAP CPM], BAF.[Freight - Lumper (Un], BAF.[Freight - Miscellane], BAF.[Freight - Prot Heat], BAF.[Freight - Redelivery], BAF.[reight - Stop Off C], BAF.[Freight - Truck not], BAF.[Freight Expense], BAF.[Sales/Case]
    FROM [jan ser] INNER JOIN BAF ON [jan ser].[Shipment ID] = BAF.SID;

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722

  5. #5
    joedean6 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2015
    Posts
    3
    Got it to work! Thanks!

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

Similar Threads

  1. data pulled from sub form not working
    By dm117 in forum Access
    Replies: 1
    Last Post: 08-13-2013, 12:11 AM
  2. Replies: 1
    Last Post: 06-28-2013, 12:54 PM
  3. Replies: 1
    Last Post: 06-21-2013, 12:07 PM
  4. Replies: 8
    Last Post: 03-07-2012, 01:18 PM
  5. Pulled Data Not Saving
    By Rookie in forum Access
    Replies: 4
    Last Post: 08-05-2011, 05:12 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