Results 1 to 2 of 2
  1. #1
    O.92 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2015
    Posts
    3

    Displaying 0's

    Click image for larger version. 
<br /><script async src=
    Name: Image Attachment.PNG  Views: 12  Size: 14.7 KB  ID: 23046" class="thumbnail" style="float:CONFIG" />


    I have a query output attached.

    As seen, it gives me the number of each person's jobs that have been open over 60 days (Y) and the number that haven't (N). The issue is, for Carly Geer, I need it to show a 0 for Y, even though she has no jobs over 60 days.

    How can this be done?

    Here's my query SQL if it helps:

    SELECT [Opens Source].[Recruiter Level 6], [Opens Source].[Recruiter Level 7], [Opens Source].[60+ Days], Sum([Opens Source].[Openings with No Offers + Offer Accept]) AS [SumOfOpenings with No Offers + Offer Accept]
    FROM [Opens Source]
    WHERE ((([Opens Source].[Opportunity Type])<>"CAMPUS POST & SCREEN"))
    GROUP BY [Opens Source].[Recruiter Level 6], [Opens Source].[Recruiter Level 7], [Opens Source].[60+ Days];

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Create a 'fake' result query of every person and give everyone a zero.
    Then take your query above and union to the fake zero query.
    Sum them.
    Q1 , your query
    Q2, select person, 0 as Sum
    Q3,
    select * from Q1
    union
    select * from Q2

    Q4 , the sum of Q3

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

Similar Threads

  1. message box after if/end if not displaying
    By Paintballlovr in forum Macros
    Replies: 5
    Last Post: 08-15-2014, 01:52 PM
  2. Displaying name
    By Kivan in forum Programming
    Replies: 2
    Last Post: 08-27-2012, 07:48 AM
  3. Not Displaying a : or ,
    By hawkins in forum Forms
    Replies: 9
    Last Post: 08-12-2011, 11:39 AM
  4. Displaying queries
    By FadingAPE in forum Access
    Replies: 3
    Last Post: 10-12-2010, 09:10 AM
  5. Displaying Value and not ID
    By jonny in forum Access
    Replies: 3
    Last Post: 10-19-2009, 08:21 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