By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,849 Members | 2,059 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,849 IT Pros & Developers. It's quick & easy.

Enabling/Disabling Two OptionGroups

P: n/a
Is it possible to enable/disable one Option Group from another
group. For example, when I open my form I want OptionGroup1
disabled, and OptionGroup2 enabled.

Private Sub Form_Open(Cancel As Integer)
Me!optECC.Enabled = "No"
End Sub
When I select OptionGroup2.button2 I want to enable OptionGroup1
Private Sub optMinMax_AfterUpdate()
Select Case Me!optMinMax
Case 1:
Me!optECC.Enabled = "No"
Case 2:
Me!optECC.Enabled = "Yes"
End Select
End Sub
The codes above are not working. This is frustrating. I have the
idea but can't get it to work.

Any ideas?
Marcus
******

Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Try True and False instead of "No" and "Yes"

Arno R

"Marcus" <to*******@yahoo.ca> schreef in bericht news:11*********************@g14g2000cwa.googlegro ups.com...
Is it possible to enable/disable one Option Group from another
group. For example, when I open my form I want OptionGroup1
disabled, and OptionGroup2 enabled.

Private Sub Form_Open(Cancel As Integer)
Me!optECC.Enabled = "No"
End Sub


When I select OptionGroup2.button2 I want to enable OptionGroup1


Private Sub optMinMax_AfterUpdate()
Select Case Me!optMinMax
Case 1:
Me!optECC.Enabled = "No"
Case 2:
Me!optECC.Enabled = "Yes"
End Select
End Sub


The codes above are not working. This is frustrating. I have the
idea but can't get it to work.

Any ideas?


Marcus
******

Nov 13 '05 #2

P: n/a
Works like a charm.

Many thanks.

Marcus
*********

Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.