Results 1 to 2 of 2
  1. #1
    rbellucci is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Location
    MA, USA
    Posts
    7

    Query that has multiple information pulled, counts, totals, and does quartly

    ok so this is what I got so far

    SELECT DISTINCTROW Format$(IRTSI.Incident_date,'\Qq yyyy') AS [Date By Quarter], irtsi.eir_num, count(irtsi.eir_num) AS Total
    FROM IRTSI
    GROUP BY Format$(IRTSI.Incident_date,'\Qq yyyy'), irtsi.eir_num, Year(Irtsi.Incident_date)*4+DatePart('q',Irtsi.Inc ident_date)-1
    HAVING (((Format$(Irtsi.Incident_date,'\Qq yyyy'))=[Which Quarter (Example: Q1 2012)]) And ((count(irtsi.eir_num))>0));




    This works btw, but I need it to pull more data at once, I have 4 things I need the same information for and i'm unable to get it to pull the data and total it. Makes it easier for the end user when creating reports. Any advice?

  2. #2
    rbellucci is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Location
    MA, USA
    Posts
    7
    So i've been trying to build off the 5 different Querys that pull quartly data as a single query to get away from it promptying the user 5 times to give input. I was able to get it show data, but the data isn't totalling correctly.

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

Similar Threads

  1. Replies: 2
    Last Post: 04-10-2013, 03:54 PM
  2. Assign a value to multiple records in a totals query
    By mercapto in forum Programming
    Replies: 8
    Last Post: 02-27-2013, 02:16 PM
  3. Replies: 8
    Last Post: 03-07-2012, 01:18 PM
  4. Multiple counts/sums needed
    By Audreysfirstdaughter in forum Queries
    Replies: 6
    Last Post: 05-25-2011, 02:14 PM
  5. Replies: 7
    Last Post: 12-07-2009, 07:27 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