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

    VBA to display an average value as a radio button

    I originally posted this query in the forms section, but in retrospect I think it may be solvable with a bit of VBA code. Any suggestions are appreciated -



    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.

    So essentially what I want to do is get code that means if the average feedback score is : 0 - 1.5 then optVDisatisfied will be checked, 1.51 - 2.5 optDissatisfied will be checked, 2.51 - 3.5 optNeutral will be checked, 3.51 - 4.1 optSatisfied will be checked or > 4.51 optVSatisfied will be checked.
    Last edited by boo; 02-01-2012 at 06:17 AM. Reason: updating question

  2. #2
    boo is offline Novice
    Windows XP Access 2000
    Join Date
    Dec 2011
    Posts
    16
    I have a text box , txtAvgFB, which contains the average for the feedback scores, so this is what I wish to refer to.

  3. #3
    boo is offline Novice
    Windows XP Access 2000
    Join Date
    Dec 2011
    Posts
    16
    OK I figured a way of doing it without using VBA. I rounded the value in txtAvgFB using =round(Avg([Feedback])), then changed the control source for my option group containing the radio buttons to =[txtAvgFB].

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

Similar Threads

  1. Display Average as a radio button
    By boo in forum Forms
    Replies: 4
    Last Post: 02-01-2012, 12:28 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