Subordinate Combo Boxes

C

CorporateQAinTX

I know this is probably easier then I'm making it out to be, but none of my
VB is working for this one.

I have an option group with 5 values. Value 4 is set as default. Values 1-3
are broad choices. But Value 5 is supposed to be specific. When 5 is selected
I want a combo box to be enabled next to it. By default, the combo box is
disabled. I don't want the user to be able to pick any option from the combo
box unless the 5th value is selected.

Can anyone assist me with this?
 
M

Maurice

How about something like:

private sub Frame1_Click
select case me.frame1
case is = 5
me.combobox.enabled=false
case else
me.combobox.enabled = true
end select
end sub

Change the name of the frame to your optiongroup name and the combobox name
to your own combobox name

hth
 
C

CorporateQAinTX

Too cool! It worked. Thanks!

Maurice said:
How about something like:

private sub Frame1_Click
select case me.frame1
case is = 5
me.combobox.enabled=false
case else
me.combobox.enabled = true
end select
end sub

Change the name of the frame to your optiongroup name and the combobox name
to your own combobox name

hth
 

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