473,387 Members | 1,532 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,387 software developers and data experts.

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 4775
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.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Thu, 26 May 2005 11:18:09 GMT, "Rick Brandt"
<ri*********@hotmail.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.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

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*********@hotmail.com> schreef in bericht news:91****************@newssvr30.news.prodigy.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.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



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
MLH <CR**@NorthState.net> wrote in
news:ef********************************@4ax.com:
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.


Try copying the code to the clipboard, deleting it from the module,
then going back to the form, click the AfterUpdate event, code, then
paste the code back in.

It's fairly common for the connection between a control's event and
the actual code to be lost, even when the name is correct.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #11
MLH
Tim:

I'll be a son of a gun. You were right. Building it w/o the wizard -
success on the first trial. I have no earthly idea why my wizard
builds 'em to where they won't work. Doing it manually, just like
you suggested is a piece of cake.

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


Nov 13 '05 #12

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

Similar topics

3
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...
1
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...
1
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)...
4
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...
2
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...
3
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...
5
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...
3
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...
2
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.