Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    KingOf206 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Location
    Seattle
    Posts
    153

    No I am not. I am pretty sure that it is because I am finding the average of many values in the records and some of those values are going to be 0. I would like a way for it to account for those 0's without giving me an "overflow" error. How can I do this?

  2. #17
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Have you tried writing a few queries, or small procedure, to mock up the calculations being done in the report?
    I'd try taking some records, lace it with some debug.prints and try to get the overflow error again.
    Then repeat using step debugging-- I'm sure there is a division by 0 or some very small value resulting in overflow--but I'm just guessing. You have the data and the issue, so you can try some debugging and let us know how it goes.

  3. #18
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Average of zeros should return 0. No idea why Avg() is failing. 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.

  4. #19
    KingOf206 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Location
    Seattle
    Posts
    153
    Here is a copy of the database.

    Let me know what else I could provide (I hope this works!)
    Attached Files Attached Files

  5. #20
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    The overflow error is on Challenge Rate, not Challenged.

    Remove the Percent formatting from the field in query to see the data as it truly is - very long decimal. I never do formatting in tables and queries, only on forms and reports. Record 10248 shows a #Num! error because of division by 0.

    Why do GROUP BY since there really isn't any aggregation of data? Remove the grouping and ChallengeRate field and do this calc in report.

    =Avg([Challenged]/IIf([Uploaded]=0,1,[Uploaded]))
    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.

  6. #21
    KingOf206 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Location
    Seattle
    Posts
    153
    Boom! Changing that formula in the report worked perfectly!! Thank you june7 !!!




    Quote Originally Posted by June7 View Post
    The overflow error is on Challenge Rate, not Challenged.

    Remove the Percent formatting from the field in query to see the data as it truly is - very long decimal. I never do formatting in tables and queries, only on forms and reports. Record 10248 shows a #Num! error because of division by 0.

    Why do GROUP BY since there really isn't any aggregation of data? Remove the grouping and ChallengeRate field and do this calc in report.

    =Avg([Challenged]/IIf([Uploaded]=0,1,[Uploaded]))

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

Similar Threads

  1. Replies: 1
    Last Post: 11-13-2014, 02:54 PM
  2. Suppress "Error" message following "Cancel = True"
    By GraeagleBill in forum Programming
    Replies: 7
    Last Post: 03-23-2014, 05:40 PM
  3. Replies: 22
    Last Post: 10-10-2013, 12:47 PM
  4. Replies: 8
    Last Post: 11-12-2010, 10:55 AM
  5. "Overflow" error message.
    By joeferraro2000 in forum Queries
    Replies: 0
    Last Post: 03-08-2007, 06:36 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