Results 1 to 3 of 3
  1. #1
    spyldbrat is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2015
    Posts
    73

    Show All Rows of Data Error

    Hello,

    I am trying to show all rows of data between 2 tables and merge what is common. I think I got stuck at the "WHERE" part and now my query is not working:

    SELECT DISTINCTROW Ramco_Modified.[Shipping Location], Ramco_Modified.[Contract #], Ramco_Modified.Day, Ramco_Modified.Date, Ramco_Modified.[Shift End Date], Ramco_Modified.[Employee Name], Protos_Modified.Start, Protos_Modified.End, Protos_Modified.[In 1], Protos_Modified.[Out 1], Protos_Modified.[MINUTES Current Day], Protos_Modified.[MINUTES Next Day], Protos_Modified.[Unpaid Break Hours], Protos_Modified.[Actual Hours], Protos_Modified.[Delta Hours], Ramco_Modified.[Actual Time In], Ramco_Modified.[Actual Time Out], Ramco_Modified.[Lunch Hrs], Ramco_Modified.[Effective Hrs], Ramco_Modified.[MINUTES Current Day], Ramco_Modified.[MINUTES Next Day]
    FROM Ramco_Modified LEFT JOIN Protos_Modified ON Ramco_Modified.[Shipping Location] = Protos_Modified.Name
    Union
    SELECT DISTINCTROW Ramco_Modified.[Shipping Location], Ramco_Modified.[Contract #], Ramco_Modified.Day, Ramco_Modified.Date, Ramco_Modified.[Shift End Date], Ramco_Modified.[Employee Name], Protos_Modified.Start, Protos_Modified.End, Protos_Modified.[In 1], Protos_Modified.[Out 1], Protos_Modified.[MINUTES Current Day], Protos_Modified.[MINUTES Next Day], Protos_Modified.[Unpaid Break Hours], Protos_Modified.[Actual Hours], Protos_Modified.[Delta Hours], Ramco_Modified.[Actual Time In], Ramco_Modified.[Actual Time Out], Ramco_Modified.[Lunch Hrs], Ramco_Modified.[Effective Hrs], Ramco_Modified.[MINUTES Current Day], Ramco_Modified.[MINUTES Next Day]
    FROM Ramco_Modified RIGHT JOIN Protos_Modified ON Ramco_Modified.[Shipping Location] = Protos_Modified.Name


    Where Ramco_Modified.[Shipping Location] Null;

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    Where Ramco_Modified.[Shipping Location] Is Null;
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    spyldbrat is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2015
    Posts
    73
    Thank you...I do have another problem with it -- it's not working they way I thought it would. I am going to start a new thread.

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

Similar Threads

  1. Show % of current rows in total rows.
    By redbull in forum Programming
    Replies: 8
    Last Post: 03-29-2016, 09:26 AM
  2. Replies: 22
    Last Post: 12-20-2015, 02:46 AM
  3. Replies: 2
    Last Post: 09-16-2014, 09:00 AM
  4. Replies: 1
    Last Post: 06-27-2014, 07:28 PM
  5. Replies: 3
    Last Post: 08-17-2010, 02:49 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