473,780 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Top option group button will not activate

Hi

I'm having a very strange problem and need HELP!!

I have a form for the user to choose a report (radio button in an
option group) and parameters (Dates, Season).

Click the option button, it turns Black, and the "On Got Focus" event
fires. The event shows or hides the parameters appropriate for that
report.

I have done this process (successfully) many times, but this time, the
TOP option button will NEVER get focus. It won't turn black. I have
changed it to "Visible = No" and put the same info in option #3, and
then Option #2 won't turn black (and option #3 will work flawlessly).

I am CLUELESS - and Desperate! Am hoping someone can help!

Can post code or email mdb. Access 2000.

Thanks -
sara
Jun 27 '08 #1
2 2890
On Tue, 27 May 2008 08:44:12 -0700 (PDT), sara wrote:
Hi

I'm having a very strange problem and need HELP!!

I have a form for the user to choose a report (radio button in an
option group) and parameters (Dates, Season).

Click the option button, it turns Black, and the "On Got Focus" event
fires. The event shows or hides the parameters appropriate for that
report.

I have done this process (successfully) many times, but this time, the
TOP option button will NEVER get focus. It won't turn black. I have
changed it to "Visible = No" and put the same info in option #3, and
then Option #2 won't turn black (and option #3 will work flawlessly).

I am CLUELESS - and Desperate! Am hoping someone can help!

Can post code or email mdb. Access 2000.

Thanks -
sara
1) Are you sure the 'top' button is actually in the option group and
not just sitting underneath or on top of it?

2) Why are you using an OptionGroup's OnGotFocus event rather than the
OptionGroup's AfterUpdate event (since as soon as you click on a
button the OptionGroup value has been updated?

If Me.OptionName = 1 then
'Do the 1 thing
Elseif Me.OptionName = 2 then
' Do the 2 thing
Else
' Do the default thing
End If
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Jun 27 '08 #2
On May 27, 12:06*pm, fredg <fgutk...@examp le.invalidwrote :
On Tue, 27 May 2008 08:44:12 -0700 (PDT), sara wrote:
Hi
I'm having a very strange problem and need HELP!!
I have a form for the user to choose a report (radio button in an
option group) and parameters (Dates, Season).
Click the option button, it turns Black, and the "On Got Focus" event
fires. The event shows or hides the parameters appropriate for that
report.
I have done this process (successfully) many times, but this time, the
TOP option button will NEVER get focus. *It won't turn black. *I have
changed it to "Visible = No" and put the same info in option #3, and
then Option #2 won't turn black (and option #3 will work flawlessly).
I am CLUELESS - and Desperate! *Am hoping someone can help!
Can post code or email mdb. *Access 2000.
Thanks -
sara

1) Are you sure the 'top' button is actually in the option group and
not just sitting underneath or on top of it?

2) Why are you using an OptionGroup's OnGotFocus event rather than the
OptionGroup's AfterUpdate event (since as soon as you click on a
button the OptionGroup value has been updated?

If Me.OptionName = 1 then
* * * * 'Do the 1 thing
Elseif Me.OptionName = 2 then
* * * * ' Do the 2 thing
Else
* * * * ' Do the default thing
End If
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail- Hide quoted text -

- Show quoted text -
Great! So this worked - thanks.

I don't know why I did it the other way - figured that out somehow,
and it worked, so I stuck with it.

BUT WHY doesn't the button go active - the old way I was doing it? I
am thinking the button has to "become active" before the code could
execute (On Got Focus), but I don't understand why the top button
(always IN the frame) would not go active?

Thanks - at least now I can deliver this report!
sara
Jun 27 '08 #3

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

Similar topics

3
4105
by: Edward | last post by:
I have a data entry form that allows the user to navigate around entirely using the keyboard. However, it contains various option button controls which are in the tab order. Whenever they are "hit" in the tab order, they are immediately "pressed" (e.g. they go from Unchecked to Checked) Is there any way of suppressing this action while still keeping them in the tab order? TIA Edward
6
2702
by: Robert | last post by:
Hello. I have been trying out the Lebans ToolTip Classes at http://www.lebans.com/tooltip.htm, to display "balloon" style help tips in a form. The classes I am using are located at http://www.lebans.com/DownloadFiles/A2kTooltip.zip So far the classes work perfectly, except that now I need to extend it to support other controls besides the ones given in the example form. I have gotten it to work with some controls, but not others. I...
6
2883
by: Adrian | last post by:
Access 2000 How can I get the properties of the selected option button within an option group? With the code below it returns the 'HelpcontextID) of the option group, and not the ID associated with the selected button. Me.ActiveControl.Properties("HelpcontextId")
11
4817
by: MLH | last post by:
Why is that? If I choose the tiny check boxes which are hard to hit with a mouse, it works fine. But option buttions, shich can be sized big enough for people with limited sight and dexterity to hit - they don't work at all. Its true. I created 'em with the built-in wizard furnished with Access 97 but they do not work. I put 12 of 'em in the group, labeled the months of the year and giving
3
5141
by: Jason Kyle Baginski | last post by:
Here's a little test app to demonstrate a problem I'm having. It creates four buttons, each one with the different FlatStyle types available. Three of them behave exactly the same way(and the way I'd anticipate), but the FlatStyle.System one does not. If you click on any of the buttons, use the enter key, or the spacebar, they will bring up a messagebox that says "Activate". Except the FlatStyle.System one, which will bring up _two_...
1
4474
by: Stephen D Cook | last post by:
What I am trying to do is have a set of option buttons which are required to click one. If the person doesn't click any before insert, they get an error. If they do click one, it inserts into the field in the table and then clears the form for the next entry. I have a form tied to a table. In the table is a lookup field. In the form I have a frame with 5 option buttons in it. Outside the frame I have a text box. I bound the text box to...
1
4508
by: Stephen D Cook | last post by:
In my form I have an option group with 3 option buttons. My form is tied to a table. the options are Temp, Permanent and Overtime. I have these inside a frame. I have an AddRecord button to enter the data into the table. After the record is Added the option buttons are emptied. I want to require the person to click one of the option buttons, which enters the type of employee it is. In the click event of the AddRecord button I have the...
2
20242
by: Thelma Lubkin | last post by:
I've been unable to find code for adding an option to an option group. I did find this instruction on a site called softlookup.com: "If you want to add another option button to an option group, click the Option Button tool and move into the option group (it will become selected) and click." But I'd like to copy the specs (size, font, etc) for an existing option button and its label rather than starting anew and fighting to make it...
2
3412
beacon
by: beacon | last post by:
Hi everybody, I have a form that has a combo box that asks the user to select the program they work on. Once the user selects the program, a SQL statement populates the row source for 4 staff member combo boxes. I have an option group that has 4 option buttons for the user to indicate how many staff members to include. Once the user selects one of the option buttons, the appropriate number of combo boxes become enabled and contain the...
0
9636
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10306
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9931
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8961
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7485
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6727
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5504
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.