change toggle on entry in combobox

  • Thread starter Thread starter p-rat
  • Start date Start date
P

p-rat

I have a form with a frame (two radio buttons - 1 = "non-dispose" and
2 = "dispose"). The default is set to 1. What I would like is for the
end user to tab past this frame and upon a selection in a combo box
(disposal site) the frame would automatically toggel to 2. If the end
user tabs through the combo box without making a selection then it
works because of the default.

Is there some code I could put in the combo box event? Thanks for any
help given.
 
p-rat said:
I have a form with a frame (two radio buttons - 1 = "non-dispose" and
2 = "dispose"). The default is set to 1. What I would like is for the
end user to tab past this frame and upon a selection in a combo box
(disposal site) the frame would automatically toggel to 2. If the end
user tabs through the combo box without making a selection then it
works because of the default.

Is there some code I could put in the combo box event?


Try using something like this in the combo box's AfterUpdate
event:

If IsNull(Me.thecombobox) Then
Me.theframe = 1
Else
Me.theframe = 2
End If
 
Back
Top