Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    fateddarkness is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    8
    I do not understand the solutions I'm being given. I've tried to follow your advice and the instructions from the link you provided, June and I've tried the suggestions you've had for me, Linq, but I'm too new at this. I know you guys cannot take the time to explain step-by-step, so I'm going to learn VBA since it seems like it's the only option I have here. I'll revisit this issue in a couple days once I have a foundation to work from and try again.



    Thanks for the assistance, and I hope if I still have questions you'll be willing to help later.

  2. #17
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Does this help:

    1. Create a general module in the VBA editor: Insert > Module

    2. Copy/paste into the module all the functions from item 4 of the link I provided. Here it is again http://support.microsoft.com/kb/209839

    3. In query or in textbox on form or report use the expression I show in earlier post. Here it is again:
    RAvg([1A], [1B], [1C], [1D], [1E], [1F], [1G], [1H], [1I], [1J], [2A], [2B], [2C], [2D], [3A], [3B], [3C], [3D], [3E], [3F], [3G], [4A], [5A], [5B], [5C], [5D], [5E], [5F], [5G], [5H], [6A], [6B], [6C], [7A], [7B], [7C], [7D], [7E], [7F], [7G], [7H], [7I], [7J])
    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.

  3. #18
    fateddarkness is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    8
    Quote Originally Posted by June7 View Post
    Does this help:

    1. Create a general module in the VBA editor: Insert > Module

    2. Copy/paste into the module all the functions from item 4 of the link I provided. Here it is again http://support.microsoft.com/kb/209839

    3. In query or in textbox on form or report use the expression I show in earlier post. Here it is again:
    RAvg([1A], [1B], [1C], [1D], [1E], [1F], [1G], [1H], [1I], [1J], [2A], [2B], [2C], [2D], [3A], [3B], [3C], [3D], [3E], [3F], [3G], [4A], [5A], [5B], [5C], [5D], [5E], [5F], [5G], [5H], [6A], [6B], [6C], [7A], [7B], [7C], [7D], [7E], [7F], [7G], [7H], [7I], [7J])
    I had to shorten the expression because Access says it's too complex and still had to use an equal sign. But yes, it's working for me. Thank you!


    There's probably a better way to do it, but as a workaround I placed each of the seven categories in a separate text box, gave them custom names, then used the formula to average those scores like this:


    Code:
    =RAvg([Score1], [Score2], [Score3], [Score4], [Score5], [Score6], [Score7])

    Thanks again for the assistance!

  4. #19
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    So you average 7 averages?

    Yes, use = sign in textbox but not in query.

    I am surprised by the too complex error. I count 221 characters in that expression and I think limit for ControlSource is 255.

    However, glad you have a working solution. An alternative would be a custom function to handle this specific situation and would involve opening a recordset and looping through the recordset fields.

    Still, the 'better' way is to normalize data.
    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.

  5. #20
    fateddarkness is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    8
    Yes, basically averaging averages. I just needed to show my co-worker I was making progress. However, we did notice that the function is still counting blanks in the total. An average for one category is 25% when it should be 40%. I'm guessing I'll need to add the RCount function somewhere.

    Not sure how to make a custom function or what a recordset is, but I will eventually!

    Edit: I'm also looking into how to normalize my data. I thought I was doing a fairly good job of keeping related info on separate tables, but I'm sure there's room for improvement.

  6. #21
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I use the RAvg function and Null values are not included in the count for the average calc. Don't know what it is about your data.

    It is a balancing act between normalization and ease of data entry/output. At some point you might scream 'ENOUGH!'. I have a db that is not strictly normalized, hence the need for RAvg function. However, the most items I have for one average is 5.
    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: 3
    Last Post: 01-08-2013, 02:41 PM
  2. delete record if 2 fields are blank
    By rlsublime in forum Access
    Replies: 1
    Last Post: 06-20-2012, 01:58 PM
  3. Form that lost its redered record
    By alvaro.mendoza in forum Forms
    Replies: 1
    Last Post: 10-17-2011, 03:06 PM
  4. lost - linking date field based on a record with smaller Unique ID
    By stan.chernov@gmail.com in forum Queries
    Replies: 7
    Last Post: 09-16-2010, 02:22 PM
  5. Replies: 13
    Last Post: 05-28-2010, 11:57 AM

Tags for this Thread

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