473,324 Members | 2,214 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Enabling/Disabling Two OptionGroups

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
2 1396
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
Works like a charm.

Many thanks.

Marcus
*********

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: HumptyDumpty | last post by:
Does anyone know if there is a problem with re-enabling the Screen Saver after it has been disabled programmatically. I am using the SystemParametersInfo function within User32.dll, and have...
2
by: adeelanjum2001 | last post by:
i am using radiolist box control in my page. when i disable radiolist box when page is displayed first time, that is not ispostback, and when i try to enable it with my javascript code afterwards,...
7
by: John Meyer | last post by:
I have a program where I have to enable or disable a list box based upon a radio button. Is there an "enabled" property on select boxes?
7
by: Vignesh | last post by:
I have tab control which has some TabPages. I want to enable or disable the tabpages based on some condition. It is possible to that. Thanks in advance.
2
by: dougawells | last post by:
Hi- I'm wanting to have a set of radio buttons disabled when a form is displayed, then if they check another specific radio button, those would become enabled. I've tried setting it via...
3
by: johndevlon | last post by:
Hi, Can someone please help me. I've got a strang problem in Visual Studio 2005 I've created a windows application, using an MDI form and top menu. When a menu item is clicked, a new instance...
0
Ali Rizwan
by: Ali Rizwan | last post by:
Hi, How can i control my devices using vb6. Like disabling mouse keyboard speakers etc. Thanx
2
by: khizerbasith | last post by:
After disabling the radio buttons while the form is loaded i have written this code for button click but its not working any solutions........... Private Sub Button2_Click(ByVal sender As...
3
by: D¿ejm | last post by:
Hello, We have a code with lot of printfs. Now I would like to introduce special mode, in which only special messages are displayed and all other are hidden. No macros or replacements please....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.