Results 1 to 2 of 2
  1. #1
    ChEStud is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    5

    Question Summing particular calculation over a certain year

    Does anyone know how I would go about summing up a particular calculated field for every year (IE. A user inputs a date in 2009 for 10 different components and each component has a uniquely calculated emission. Then the total emission from 2009 for all 10 components is reported)?

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    if your database is normalized you can summarize on a given year/month/day combination by using the datepart function

    In your case you'd have datepart("yyyy", [datefield]) which would return the year the part was entered with, then if you use an aggregate query (look for the SIGMA button in your query design, looks like an upper case E) and sum on the emissions field you should get what you want.

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

Similar Threads

  1. summing in a query
    By nparrillo in forum Queries
    Replies: 1
    Last Post: 04-11-2011, 10:37 AM
  2. summing
    By nashr1928 in forum Forms
    Replies: 18
    Last Post: 04-05-2011, 05:01 PM
  3. Summing reports
    By tarhim47 in forum Reports
    Replies: 0
    Last Post: 03-30-2011, 11:07 AM
  4. Summing a column
    By nashr1928 in forum Forms
    Replies: 2
    Last Post: 05-10-2010, 05:42 PM
  5. need help with summing a range
    By sundance0000 in forum Access
    Replies: 3
    Last Post: 01-12-2010, 02:12 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