Results 1 to 2 of 2
  1. #1
    Gary Childress is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2012
    Posts
    34

    Post Creating Year End Totals Report

    There must be an easy way to do this but I can't figure it out. All I want is a report that summarizes yearly totals from a query. I also need quarterly totals (but I'll worry about quarterly totals later for now). I don't need any other information on the report other than those totals.



    I've started off with something like what is pictured below. Basically I created a form called "Yearly Stats Form". You type in a value for the year you want stats for on that form and it will give you both that year (using the query "Query Yearly Totals") and the prior year (using the query "Query Yearly Prior Totals"). Both queries are just simple queries from a table called "Main Events Table".

    So far I've been able to successfully use DCount to total up the types of events in my report, however I'm having a problem figuring out how to total up two fields with numerical values. I tried to use the formula directly below in a text box on the report to sum up the total cost of attendance for the year:

    Code:
    =Sum([Query Yearly Totals]![Cost of Attendance])
    However, when I run the report I get the following error code in the field: "#Error".

    I also tried creating a "Totals" row at the bottom of the "Query Yearly Totals" query that sums up the total cost for the columns "Cost of Attendance" and "Attendance", however, I don't know how to get that total row to show on a report.

    NOTE: the field "Cost of Attendance" is basically an "entry fee" for the event and the field "Attendance" is the number of people who attended the event. The total values of those two fields for the year are what I'm having trouble showing on the report.

    Thank you.
    Attached Thumbnails Attached Thumbnails totals.gif  

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    [Query Yearly Totals] is the RecordSource of the report?

    If you want to provide db for analysis, follow instructions at bottom of my post.
    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.

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

Similar Threads

  1. Replies: 4
    Last Post: 02-25-2015, 12:44 PM
  2. Creating report for totals
    By BRZ-Ryan in forum Reports
    Replies: 26
    Last Post: 12-18-2013, 01:32 PM
  3. Creating Weekly report from Cumulative Totals
    By Sackface in forum Access
    Replies: 3
    Last Post: 03-14-2013, 11:17 AM
  4. Replies: 1
    Last Post: 08-10-2011, 01:48 AM
  5. Month totals and Year totals
    By marksnwv in forum Access
    Replies: 1
    Last Post: 08-05-2011, 10:13 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