• Option buttons stay gray if in an option group (A2K)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Option buttons stay gray if in an option group (A2K)

    Author
    Topic
    #369199

    The option buttons in my option group stay gray when I press them, although the code I placed behind each does run. If I take the buttons out of the group, they do turn black (show in focus) when selected. The problem with leaving them out of the group is that they stay black even when another one is pressed – they don’t revert back to gray.

    Does any one know why my option buttons in an option group stay gray and will not show that they are in focus?

    Thanks,

    Randy

    Viewing 0 reply threads
    Author
    Replies
    • #580875

      The only way I can think of to duplicate your problem is to set the locked property of the option buttons to True and set the default value of the option group to Null. Then clicking on an option button will trigger the MouseDown event for that button but because the button is locked it won’t accept the focus. Is it possible you’ve done something like that?

      You don’t usually have events for the option buttons themselves. Instead, you use the events of the group that contains them. You take action based on its value, which is the data value of whichever button was clicked. Perhaps if you explain what you’re trying to accomplish, someone can suggest an easier way to do it.

    Viewing 0 reply threads
    Reply To: Reply #580875 in Option buttons stay gray if in an option group (A2K)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information:




    Cancel