option group onclick

  • Thread starter Thread starter Souris
  • Start date Start date
S

Souris

I have an option group for date range and would like to change my date time
picker value depends on user click on the radio button and just realized that
there is no onclick even available for the radio button.

which even I have to put my code for radio button on click?


YOur help is great appreciated,
 
in Click event for option group. If need be, check the option group value to
see which radio button was clicked.

-Dorian
 
Use the Option Group's After Upate event and check it's value to see which
option was selected. The Select Case statement is good for this situation:

Private Sub MyOptionGroup_AfterUpdate()

Select Case Me.MYOptionGroup
Case 1
'Do Stuff for Option 1 Selected
Case 2
'Do Stuff for Option 2 Selected
Case 3
'Do Stuff for Option 3 Selected
End Select
End Sub
 
Back
Top