473,546 Members | 2,244 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I chose toggle buttons in my option group and now my option group isn't being updated when one of them is pressed

MLH
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
them option values 1 through 12. No afterupdate code
fires on click of ANY of the 12 toggle buttons.

Why?
Nov 13 '05 #1
11 4795
MLH wrote:
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
them option values 1 through 12. No afterupdate code
fires on click of ANY of the 12 toggle buttons.

Why?


Are you using AfterUpdate of the ToggleButton or of the OptionGroup? You
need to use the latter.

Are you positive you have them *inside* the OptionGroup. If you move the
group to the ToggleButtons move?

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #2
MLH

Are you using AfterUpdate of the ToggleButton or of the OptionGroup? You
need to use the latter. That's the problem. I can't use the latter. I can write code there,
but it does no good. The event doesn't fire. Does it fire for you?
I let the wizard build my option group. Maybe it left something out.
Dunno. But I don't think so. I remember same behavior in Access 2.0.
Are you positive you have them *inside* the OptionGroup. If you move the
group to the ToggleButtons move?

Yes, if I drag the group, the TB's go with it in unison.
Nov 13 '05 #3
MLH

Are you using AfterUpdate of the ToggleButton or of the OptionGroup? You
need to use the latter.

The toggle buttons in the option group do not have after update
events. I don't think they are updateable objects anyway.
Nov 13 '05 #4
MLH wrote:
Are you using AfterUpdate of the ToggleButton or of the
OptionGroup? You need to use the latter.

That's the problem. I can't use the latter. I can write code there,
but it does no good. The event doesn't fire. Does it fire for you?


Are you sure that you have "[Event Procedure]"entered in the event property for
the group?

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #5
MLH
Am I sure? As sure as I am that I launched MS Access before
running the procedure. You sould like me when I did tech support...
Is the monitor power cord plugged in? I me into a power outlet?
How about the switch. What I mean - is it flipped to the ON
position?

Here's the only code line in the OG's AU event:
MsgBox "After update event just fired"
Msg never displays after clicking any toggle button.
OG value is NEVER updated. All TB's have option
values set. I'm telling you, it does not work with TB's.
It does work with the radio bttns and check boxes.
xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxx
On Thu, 26 May 2005 11:18:09 GMT, "Rick Brandt"
<ri*********@ho tmail.com> wrote:
MLH wrote:
> Are you using AfterUpdate of the ToggleButton or of the
> OptionGroup? You need to use the latter.

That's the problem. I can't use the latter. I can write code there,
but it does no good. The event doesn't fire. Does it fire for you?


Are you sure that you have "[Event Procedure]"entered in the event property for
the group?


Nov 13 '05 #6
MLH wrote:
Am I sure? As sure as I am that I launched MS Access before
running the procedure. You sould like me when I did tech support...
Is the monitor power cord plugged in? I me into a power outlet?
How about the switch. What I mean - is it flipped to the ON
position?
That omission happens all the time in these groups.

Here's the only code line in the OG's AU event:
MsgBox "After update event just fired"
Msg never displays after clicking any toggle button.
OG value is NEVER updated. All TB's have option
values set. I'm telling you, it does not work with TB's.
It does work with the radio bttns and check boxes.
xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxx

I admit I didn't run a test before because I felt no need to, but I did just now
(Access 97) and I saw the MsgBox in my AfterUpdate event with RadioButtons and
when I changed them to ToggleButtons I still got the MsgBox. I see no change in
behavior at all.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #7
Rick Brandt wrote:
I admit I didn't run a test before because I felt no need to, but I
did just now (Access 97) and I saw the MsgBox in my AfterUpdate event
with RadioButtons and when I changed them to ToggleButtons I still
got the MsgBox. I see no change in behavior at all.


Just got to work and ran the same test in Access 2000, 2002, and 2003. The
AfterUpdate fired correctly in all versions with ToggleButtons.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #8
I also tested in Ac 97: No problem

To MLH: "Try it again, maybe on a blank form (that's what I did ;-)) "
The switch might be in the ON position, but how about the current ??
Do you see the light ?? <g> (just kidding)

I also do tech support sometimes with my own apps...

Arno R

"Rick Brandt" <ri*********@ho tmail.com> schreef in bericht news:91******** ********@newssv r30.news.prodig y.com...
MLH wrote:
Am I sure? As sure as I am that I launched MS Access before
running the procedure. You sould like me when I did tech support...
Is the monitor power cord plugged in? I me into a power outlet?
How about the switch. What I mean - is it flipped to the ON
position?


That omission happens all the time in these groups.

Here's the only code line in the OG's AU event:
MsgBox "After update event just fired"
Msg never displays after clicking any toggle button.
OG value is NEVER updated. All TB's have option
values set. I'm telling you, it does not work with TB's.
It does work with the radio bttns and check boxes.
xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxx



I admit I didn't run a test before because I felt no need to, but I did just now
(Access 97) and I saw the MsgBox in my AfterUpdate event with RadioButtons and
when I changed them to ToggleButtons I still got the MsgBox. I see no change in
behavior at all.


--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com

Nov 13 '05 #9
MLH wrote:
Here's the only code line in the OG's AU event:
MsgBox "After update event just fired"
Msg never displays after clicking any toggle button.
OG value is NEVER updated. All TB's have option
values set. I'm telling you, it does not work with TB's.
It does work with the radio bttns and check boxes.


I use toggle buttons all the time in option groups in A97 and A2003 and
have never ever had this problem.

Has the option group been renamed after you put the after update code
in? This will "orphan" blocks of code in your form module (unless name
autocorrect somehow takes care of this, but I have ALWAYS turned name
autocorrupt off after hearing frequent advice from Tony Toews to avoid
this apparantly plagureed feature - could this be part of your problem,
I wonder?)

Though I've never use the wizard to do it. So try building one without
the wizard.

Delete your current option group and build it by using the form design
view tool box. Bring in an option group and enter toggle buttons one at
a time into the option group frame, altering the caption property to the
name of the month. Don't copy existing button - or if you do, make sure
you chnage the option value so that all 12 toggle buttons have different
values. Then set up your after action event for the option group.

That will work. If it doesn't, you're doing somehting fundamentally
wrong I can't figure out from what you've written.

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Nov 13 '05 #10

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

Similar topics

3
4071
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...
1
3345
by: Sarah | last post by:
Hi... I have a problem and I hope someone can help me out! I have two series of radio buttons...(call them Group A and Group B) and a Textarea. When you click on any of the radio buttons in the A group, it automatically adds some text to the textarea, using a javascript onClick function. When you click on any of the radio buttons in...
1
1482
by: wolfing1 | last post by:
I'd like to have an 'approve' and 'reject' option for each record in a list, and a 'process' button. When this button it's pressed, then it would post to the same page which would update (or add) records in the database depending on if the approve or reject option is checked. Originally, I set up radio buttons with the same name, but...
4
4337
by: Neil Coleclough | last post by:
I am constructing a database to process product returns for my Company. I have a number of toggle buttons to identify the stage to which each return has been processed. For example, clicking the first button confirms that the goods are now in our building awaiting initial processing. This button then fires off an email to our warehouse staff...
2
7953
by: Mel | last post by:
Hi, is there any way I can implement toolstrip toggle button simular to the MS Word alignment button? if one toggle button already pressed down, if user click on the "pushed down button", the other toggle button will push down and the "pushed down button" will push up. I have trying to find groupID for toolstrip button, but seem like they...
3
4137
by: Andrew | last post by:
I am new to VBA Please can someone help get me started. I need to know how to use an if statement to check if a button has been pressed i.e. if button 1 is pressed a file will be imported from a particular location if button 2 is pressed a file will be imported from a different location. I have several buttons but figure if someone can...
5
3344
by: Killer42 | last post by:
Hi all. I'm coming from a VB6 background so this is just confusing me a little. I have a form where the user can select one of a number of years to search. The selection doesn't relate directly to any particular table or field in the database, but will be used in code later to build queries. I have tried putting a bunch of radio/option...
3
2334
by: Delfry | last post by:
Hello! That's the my (I guess quite lame) question: I use a Speedbuttons formed in a group and I cant figure out how to make them change their appearance once they are pressed. I mean there are two basic states: up and down. And my buttons look alike when up and when down. The only way too make a pressed button look like a pressed button...
2
5252
by: Chuck | last post by:
How can I make an array of command buttons (or toggle buttons) on a form and have a text box on the same form display the index of the button clicked? This works very well in VB6, but I can't duplicate the action in Access. Chuck
0
7507
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...
0
7698
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. ...
0
7794
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...
0
6030
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...
1
5361
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...
0
3492
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...
1
1922
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1046
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
747
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.