Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    You did not respond to my obervation #3 about SumOfTotalUsage.
    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.

  2. #17
    sbaptista is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    10
    Quote Originally Posted by June7 View Post
    My observations.

    3. The total for Total Usage Cost is correct even though the value for record doesn't show. The next column has [txtTotalUsage]/[SumOfTotalUsage]. Where does SumOfTotalUsage come from? I don't see it in the RecordSource. I put a 100,000 in its place and rest of the columns calc but still don't see that row. So bizarre!
    SumofTotalUsage is not in the RecordSource. It's a text box located in the report footer that holds the last value of txtTotalUsageRunning, a text box using the running sum technique. When you say "The total for Total Usage Cost is correct even though...", that total is the contents of SumofTotalUsage.

  3. #18
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Quote Originally Posted by sbaptista View Post

    Unfortunately, in an Access report, the process becomes quite convoluted. I'm resorting to using two text boxes per column, one visible and the other hidden with a running sum because aggregate functions like Sum() are designed to work with the record set, not real time generated data.
    That statement makes absolutely NO SENSE whatsoever. A query, using SUM() is perfectly fine to work with "real time generated data." I see absolutely NOTHING which can't be generated inside the query that is the base of the report's recordsource. Would you so kindly try (and this will be a challenge for you) to explain what can't possibly be calculated in the query?
    From what you describe, the good news is that you and/or June7 have managed to replicate the behavior I've experienced. The bad news is that you don't see a solution.
    The bad news is that I GAVE YOU THE SOLUTION but you refuse to go do it. Your report is extensive enough that I don't want to go do your work for you but will work with you to get it revised. So, don't tell me that I don't see a solution because with 14 years of Access development experience, I think I have at least a little grasp of what is and what is not possible in an Access report.

  4. #19
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Oh, and another thing. You have things in the PAGE HEADER which should NOT be in the PAGE HEADER. It will not be correct. You are attempting things like:

    =[BWLowColorVolume]*[BWLowCPC]

    which will not display the correct amounts because it will only take the FIRST RECORD and display that value if it is on the page header.

  5. #20
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I agree with bob that all these calcs should be possible in the query. This leads me to my observation #2 about filtering the data. Your example data includes a date filter but as I described, filtering has no influence on the running sum where you use textbox names instead of field names. I tested this by adding an additional filter criteria for the cost centers and found that the totals were unchanged. You need to do calcs in query and bind textboxes to the calculated fields.

    And about the calc with SumOfTotalUsage, it obviously is not working.
    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.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 17
    Last Post: 08-03-2011, 05:19 PM
  2. Form Stops Updating Subforms
    By caddcop in forum Forms
    Replies: 1
    Last Post: 04-06-2011, 08:37 AM
  3. Replies: 0
    Last Post: 12-03-2010, 04:02 PM
  4. Running update query in access 2010
    By dbansal in forum Queries
    Replies: 1
    Last Post: 09-03-2010, 10:57 AM
  5. Having - Like stops working
    By tdalber in forum Queries
    Replies: 0
    Last Post: 02-03-2009, 04:30 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