option group onclick

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,
 
M

mscertified

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

-Dorian
 
K

Klatuu

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top