How to default option button selection. Both are greyed out.

T

Tim Cali

I have 2 option buttons in a frame that each calls a macro when clicked:

Private Sub fraCurrSurvey_AfterUpdate()
Select Case Me.fraCurrSurvey
Case 1
Call SortRspndAsc
Case 2
Call SortRspndOrderEntry
End Select
End Sub

Problem is, when I initialize the form, both are "greyed" out.

How do I default the first one to being on when the form is initialized?
(Logically, I would like to call SortRspndAsc too.)

Thanks.
 
A

Ayelet

Hi,
You can set the default value to the right option simply
by setting the option group's Default Value to 1.
But I think what you really want to do is
Call SortRspndAsc
from the Form_Current() event.
HTH,
Ayelet
 
T

Tim Cali

Thanks.

Ayelet said:
Hi,
You can set the default value to the right option simply
by setting the option group's Default Value to 1.
But I think what you really want to do is
Call SortRspndAsc
from the Form_Current() event.
HTH,
Ayelet
 

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