Results 1 to 10 of 10
  1. #1
    Hope Warren is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    5

    Radio Buttons in Option Group will no longer fill-in after being formatted

    Hello,



    I have several sets of radio buttons in group options on my split form that were working just fine (filling-in when selected and recording the data to my table) before I added a code to the "After Update" event tab (see code below). Once I put the code in the buttons would not longer fill in to show as selected. They do still record the formatted information on the table (title of button instead of the number). I cannot figure out what how to fix this. Can anyone help?
    Code:
    Private Sub FRAME_Review_Status_AfterUpdate()
    Select Case FRAME_Review_Status.Value
          Case 1
             FRAME_Review_Status.Value = "Review NA"
          Case 2
             FRAME_Review_Status.Value = "Pending DLR Conf"
          Case 3
             FRAME_Review_Status.Value = "Pending Analyst Review"
          Case 4
             FRAME_Review_Status.Value = "Pending DS Review"
       End Select
    End Sub

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Maybe double check to make sure the name of your Option GROUP is actually FRAME_Review_Status

    Use your mouse pointer to left swoop over a corner of the group to highlight it. Then check the name and the Event. The only other thing I can think of is maybe you copied your option group from one form to another. Need to create option groups with the wizard.

  3. #3
    Hope Warren is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    5
    Thanks for your reply. Yes, the names are equal. It also records the formatted data when you select it, the dot just does not show as selected.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    When you create an option group using the Wizard, you will tell the wizard what the value of the Option Group is. So there is not a need for
    FRAME_Review_Status.Value = "Pending DLR Conf"

    You would type the value you want as a step within the wizard. So if the value is 1 and then you try to change it to Review NA, this could cause unexpected behavior

  5. #5
    Hope Warren is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    5
    It does not give you an option to change it in the Wizard...only the option to control/renumber each button

  6. #6
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    It was not my intention for you to infer that it can be edited. When you create an option group, the Wizard steps you through the process.

  7. #7
    Hope Warren is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    5
    I tried that previously but, when using the wizard, I named the buttons to be what I wanted and the only other place it takes you to insert additional information is the "option value", which must be a numeric value.

  8. #8
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    To begin with, using code like

    FRAME_Review_Status.Value = "Review NA"

    is not 'formatting' anything, it's assigning a value to FRAME_Review_Status! And therein lies your problem! The value of any Option Group can only be an Integer! It cannot be Text, which is what you're trying to do and why the radio buttons are not working after the assignment of a Text value!

    Linq ;0)>

  9. #9
    Hope Warren is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    5
    So, are you telling me there is no way to use the two together? It updates the field in my report with the text...it will just no longer fill in the dot...
    Click image for larger version. 

Name:	Buttons Not Working.jpg 
Views:	5 
Size:	48.6 KB 
ID:	16974

  10. #10
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Why don't you start by explaining what the option group is supposed to accomplish. If a User ticks an option, what does that do for the User, from a business rules perspective?

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

Similar Threads

  1. Replies: 6
    Last Post: 12-04-2013, 07:00 PM
  2. Replies: 4
    Last Post: 07-08-2013, 03:46 PM
  3. Radio buttons within Option Group not working
    By losingmymind in forum Programming
    Replies: 7
    Last Post: 01-09-2013, 03:09 PM
  4. Working with Radio Buttons and Option Groups
    By queenbee in forum Access
    Replies: 1
    Last Post: 04-29-2011, 02:25 PM
  5. option group radio buttons
    By ManC in forum Forms
    Replies: 9
    Last Post: 03-08-2010, 03:46 AM

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