Results 1 to 2 of 2
  1. #1
    michaeljohnh is offline More Human than Human
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    61

    Rolling 3 Month sums

    I am looking to track the amount of tickets each agent opens per month. I am trying to make a report that looks at the current month and displays by agent their monthly totals for the current month, previous month and two months ago in a total of four columns (one for agent, one for each month).



    I have a table named Tickets with the relevant fields OpenDate and User. I have technically been able to accomplish this manually by using a crosstab query (named Tickets_Crosstab2) which displays all twelve months and then creating a report with the record source being the query. I then drag and drop the 3 controls corresponding to the three months i want. However, doing it this way, every months I will need to go back and change which 3 fields are being used.

    So what I need to know is :
    1.What is the calculation I need to determine the three months to use (I presume it would utilize the Date() function)?
    2.Does the calculation go into the crosstab query or the report, and where specifically?

  2. #2
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,046
    Hi,

    * you can use the datediff function to look for the months you want to use
    * in the report you can first group by "user" and then group on "OpenDate" by month and use the Count function in the groups footer to count the tickets.

    gr
    NG

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

Similar Threads

  1. Sums of Multiple Queries
    By flsticks in forum Queries
    Replies: 5
    Last Post: 09-16-2010, 09:32 AM
  2. Replies: 0
    Last Post: 02-28-2010, 08:35 AM
  3. Sums in Detail area of report
    By Rick West in forum Reports
    Replies: 2
    Last Post: 12-01-2009, 07:15 PM
  4. calculating sums in reports
    By Hannu in forum Reports
    Replies: 1
    Last Post: 03-12-2009, 02:59 PM
  5. SQL Query by day to end of month
    By tcasey in forum Queries
    Replies: 0
    Last Post: 10-07-2008, 09:55 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