<sm***********@yahoo.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
I am trying to set up a pair of checkboxes where only one may be
checked at a time BUT both should be able to unchecked as well. Thus
an option group does not work as at least one value will always be
true.
I tried:
Private Sub chkRMA_Click()
chkRMAOther = False
End Sub
Private Sub chkRMAOther_Click()
chkRMA = False
End Sub
I found that when I set the opposite checkbox value, I call its event
as well, thereby setting both to false.
Any suggestions?
I'm pretty sure that changing the setting of another control does NOT fire
that control's event. Yet I see a flaw in your logic. Remember that the
control is checked when you click it, but then it becomes unchecked when you
click it again. So if you click it a 2nd time it will become unchecked and
the other control will become unchecked, too.
Instead, try using the AfterUpdate event. Such as (air code):
Private Sub chkRMA_AfterUpdate()
If Me.chkRMA = True
Me.chkRMAOther = False
Endif
End Sub
Private Sub chkRMAOther_AfterUpdate()
If Me.chkRMAOther = True
Me.chkRMA = False
Endif
End Sub
Fred Zuckerman