Results 1 to 15 of 15
  1. #1
    joeydeck is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    26

    Summing in Report

    Hello,


    I have created a report and i am having trouble with the =Sum() function. I would like to sum all the values that are held in a text box which has the expression of '=[BookingSF_Qry subreport].[Report]![TotalSF]*[HowManyDays]'. No matter what i try i cant get a total value of all of these.

    Do you have any suggestions?

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Are you placing your SUM formula TextBox in a Footer section?

  3. #3
    joeydeck is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    26
    Yes, I have tried the =Sum() expression in all footers. None of them seem to work...

    Thanks
    Joe

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    What is your exact SUM formula?
    Are you summing the name of the Text Box that the calculation is done in?

    Do any of the underlying calculations that you are trying to SUM return blanks, errors, or NULLs?

  5. #5
    joeydeck is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    26
    =sum([BookingSF_Qry subreport].[Report]![TotalSF]*[HowManyDays]), i have tried it in many diffferent ways....
    =sum([RecTotal])

    I have tried to put the expression into the query source and that didnt help.

    Thanks
    Joe

  6. #6
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    What about my other question?

    What does your attempted SUM return? An error, a blank, the wrong value?

  7. #7
    joeydeck is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    26
    Sorry, i forgot about that one...
    No it doesn't return any value or error

  8. #8
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    I think this is one where we may need to see your report to see if we can tell what is going on. You can upload/attach a copy of your database, so people here can take a look at it. Just be sure to remove any personal or sensitive information.

    Unfortunately, I am not at a location where I can download files from the internet, but I will be tonight. However, someone else here may chime in too.

    In the meantime, you may want to take a look at a few articles on the internet, like this one: http://office.microsoft.com/en-us/ac...010120854.aspx

  9. #9
    joeydeck is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    26
    Thank you for this. I have attached a copy of my database.

    Cheers
    Joe
    Attached Files Attached Files

  10. #10
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,742
    Joey,

    When I opened your database and went to the report design, I noticed that your textbox to show the Sum(PricetoHire) had its visibility property set to NO.
    Change the Visible Property to Yes and try it.

    Good luck.

  11. #11
    joeydeck is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    26
    That is the only calculation that is working. I set it to not visible. It is on the DateStaff_Rpt,

    Thanks
    Joe

  12. #12
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,742
    I looked at the BookingSF sub report.

    I have no idea what parameters I'm suppose to enter after opening DateStaff_Rpt.
    Perhaps you could clarify in plain English what exactly is the issue. Which forms, what parameters, your expectations, etc.

    This should be a guessing game, so more clarity please.

  13. #13
    joeydeck is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    26
    Sorry im being a noob here.

    If you enter - 6/3/13,9/3/13 & perry that will bring up some data in the Datestaff_Rpt. The issue i am having is not being able to =sum() the total of each record. in this case this is a text box with a calculation of '=[BookingSF_Qry subreport].[Report]![TotalSF]*[HowManyDays]'. This is called RecTotal.

    I would like textbox 'text145' to sum all of the [RecTotals]

    Thanks
    Joe

  14. #14
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,742
    ??? Ehen i put in your values 6/3/13,9/3/13 & perry, I got prompted for RecTotal ????
    Attached Thumbnails Attached Thumbnails BikePrompt.jpg  

  15. #15
    joeydeck is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Sep 2012
    Posts
    26
    yes that is the problem. That is because the Text box with the calculation cannot find the value of RecTotal. If you delete this in Design view this parameter box doesnt show.

    cheers
    Joe

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

Similar Threads

  1. Report summing incorrectly (access 2003)
    By cyasuda in forum Reports
    Replies: 1
    Last Post: 04-06-2012, 03:24 PM
  2. Summing totals horizontally in report
    By UnfinishedStory in forum Reports
    Replies: 3
    Last Post: 10-20-2011, 08:15 AM
  3. Summing Report Totals
    By bugme in forum Reports
    Replies: 3
    Last Post: 05-09-2011, 09:36 AM
  4. summing
    By nashr1928 in forum Forms
    Replies: 18
    Last Post: 04-05-2011, 05:01 PM
  5. Summing values in report view
    By BigBear in forum Reports
    Replies: 2
    Last Post: 04-06-2010, 04:37 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