expandible option group

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

Hi,

Does somebody knows which control i can use to make an expandible option
group. I would like to create a form with some radio buttons and if one
chooses a button, there should be an expandible sub option group.

Can this be done in access or should i use something else?

Greetings,

J
 
Jason,
If I understand you correctly...
Expanding an Option Group really won't do any good. If you add a couple
more choices to an existing OptGrp, when you select any of the additional
choices, you'll lose the original choice that expanded the group in the
first place. Option Groups can only return 1 value.
Just for example... try this... let's say you had a 3 choice option group
(Opt1), with values of 1, 2, 3. If the user selects the 3rd option, you
could "unhide" another pre-built 2 choice option group (Opt2) to allow the
user to make an additional selection.
Use the AfterUpdate event of Opt1 to...
If Opt1 = 3 Then
Opt2.Visible = True
Else
Opt2.Visble = False
End If
Also, you'll need to place the same code on the OnCurrent event for the
form, so Opt2 will display whenever you're browsing through records.
hth
Al Camp

I wouldn't try to "expand" 1 option group with more choices,
 
Back
Top