Results 1 to 6 of 6
  1. #1
    54.69.6d.20 is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2012
    Posts
    21

    Sum calculated field on Report

    Click image for larger version. 

Name:	access.png 
Views:	11 
Size:	9.5 KB 
ID:	8152 I'm looking to get a Sum of the column Total Days. Is that possible?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    One way:

    =Sum(DateDiff(...))
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    By the way, I changed your thread title to something more meaningful than "Report".
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    54.69.6d.20 is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2012
    Posts
    21
    Thanks. Unfortunately that's not going to work for me. =DateDiff("d",[AC],[AQ]) gives me the time difference, but I need to add all those lines up and * that number to get the Sum. You can see that I was trying =Sum([TotalDays]) on the bottom but it's not working. I know I can put my output in excel, highlight and get the sum, but looking for a way to add it to that text box

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Well, you can't sum a calculated control:

    http://support.microsoft.com/kb/207763

    I'm not clear on how what I posted would give you anything different than what you were trying to do.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    54.69.6d.20 is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2012
    Posts
    21
    Basically it looks like it's not going to work. From what I understand is there is really no place holder. In Excel everything has a place (A1, b12 Etc). This is just showing a calculation.

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

Similar Threads

  1. Calculated Field
    By crcastilla in forum Access
    Replies: 2
    Last Post: 03-22-2012, 10:16 AM
  2. Replies: 5
    Last Post: 09-09-2011, 01:15 PM
  3. calculated field
    By nashr1928 in forum Forms
    Replies: 2
    Last Post: 03-30-2011, 04:29 PM
  4. Calculated field
    By nashr1928 in forum Forms
    Replies: 3
    Last Post: 07-22-2010, 05:10 AM
  5. Sorting a Report by a Calculated field
    By mulefeathers in forum Reports
    Replies: 1
    Last Post: 05-22-2010, 08:21 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