Results 1 to 5 of 5
  1. #1
    boo is offline Novice
    Windows XP Access 2000
    Join Date
    Dec 2011
    Posts
    16

    Display Average as a radio button

    Hi

    I have a form, frm_Feedback, which displays the feedback received for each job done by the related interpreter. The frm_Feedback allows a radio button to be selected, either - Very Dissatisfied, Dissatisfied, Neutral, Satisfied, or Very Satisfied. Each one of these then assigns a value for each job from 1 (Very Dissatisfied) through to 5 (Very Satisfied). Is it possible to display the average for all jobs in the same way, ie showing the 5 radio buttons with the average one selected?



    Thanks.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,623
    This is best done in a report. Conventional axiom for databases is 'enter raw data, do calcs in reports'.
    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. #3
    boo is offline Novice
    Windows XP Access 2000
    Join Date
    Dec 2011
    Posts
    16
    Thanks for the reply June7. I understand about carrying out calcs in the reports. I think the above may be possible using VBA, so I will bring the query over to that part of the forum.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,623
    A GROUP BY query with an Avg calc should produce the aggregation. You can base a form on that query. You don't want to show the detail records that contribute to the aggregate calc?
    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. #5
    boo is offline Novice
    Windows XP Access 2000
    Join Date
    Dec 2011
    Posts
    16
    Hi again June7, thanks very much for the reply. I actually figured out a way to do it - I rounded the average feedback value in a non-visible text box, txtAvgFB, using =round(Avg([Feedback])), then changed the control source for my option group containing the radio buttons to =[txtAvgFB]. This gave me the result I was after.

    Cheers for taking the time to look at the question.

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

Similar Threads

  1. Replies: 2
    Last Post: 01-08-2012, 12:07 PM
  2. Option/Radio Button Problem
    By benthamq in forum Forms
    Replies: 6
    Last Post: 09-16-2011, 09:48 AM
  3. radio button and checkbox
    By Fifa in forum Access
    Replies: 2
    Last Post: 01-19-2011, 10:20 AM
  4. Radio Button Select in WebBrowser
    By access_man in forum Access
    Replies: 3
    Last Post: 10-27-2010, 05:29 PM
  5. Select Radio Button and another one turns off
    By Lockrin in forum Programming
    Replies: 1
    Last Post: 02-09-2010, 02:17 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