473,406 Members | 2,377 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,406 software developers and data experts.

option group frame can only select once

I made a group of option radio button which update mark in txt_mark textbox. It work well except that I cant reselect my option. I have to click outside the group frame first to reselect.

My simple sub is as follows;

Expand|Select|Wrap|Line Numbers
  1. Private Sub Frame116_AfterUpdate()
  2.     Select Case Frame116.Value
  3.         Case 1
  4.             Me.txtMrkJwtBB1 = 10
  5.         Case 2
  6.             Me.txtMrkJwtBB1 = 8
  7.         Case 3
  8.             Me.txtMrkJwtBB1 = 7
  9.         Case 4
  10.             Me.txtMrkJwtBB1 = 6
  11.         Case 5
  12.             Me.txtMrkJwtBB1 = 5
  13.         Case 6
  14.             Me.txtMrkJwtBB1 = 4
  15.         Case 7
  16.             Me.txtMrkJwtBB1 = 2
  17.     End Select
  18. End Sub
Apr 26 '15 #1
3 1985
zmbd
5,501 Expert Mod 4TB
OK,
Is it that you make the selection, say the first radio button, and then it is stuck on that first radio button despite the fact that you select a different radio button;

OR

IS it that you make the selection and the Me.txtMrkJwtBB1 control doesn't change when you make the next selection?
Apr 26 '15 #2
zmbd, your first option was happening. Its stuck with one click.
Apr 27 '15 #3
zmbd
5,501 Expert Mod 4TB
There is a very remote possibility that the pending update event is hanging your toggles.

Most likely there is another piece of code somewhere else that is related to this control that is hanging.

Try this:
On a backup copy (my first rule, never ever do work on either the production database or the only development copy - always backup the file first!)

Debug compile first. Fix any errors.

Then:
Option 1:
Place a STOP command before your select..case statement.
When the debugger starts, [F8] thru your code. See what events are triggering. Best to have two monitors so you can have the form open in one and the VBA code in the other screen; however, try to arrange the screens so that you can see what is occurring in the form.

Option 2:
Go back into design view and open the properties for the frame. Select the "On Click" Event and then copy-n-paste the code from the "After Update" event into the "On Click" event. Then delete the "After Update" code. Go back to your properties control and double check that there is no longer anything in the "After Update" (you may need to save the form, close, and reopen). Now run your form. The disadvantage here is that the [Me.txtMrkJwtBB1] control should update immediately and that may not be what you want.
Apr 27 '15 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Georges Heinesch | last post by:
Hi. I created an option group using the wizard. I included 3 option buttons. An option group (in general) can be enabled or disabled completely (includung option buttons and their respective...
1
by: Liz Malcolm | last post by:
Hello and TIA. I have a DE form with an option group that if daily is selected todays date is used for start and end date, if weekly is selected Monday - Friday is used. I am trying to add a...
11
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...
1
by: AA Arens | last post by:
I created an Option Group (go to Design View > Toolbox) and want the values to be filled in a present table. How to make it possible that not only nummeric values can be given, but also names? ...
9
by: jeremy0028 | last post by:
I have a option group M F and is stored into a field called gender. I also have a 2 text boxes on a form one called male one called female What i want to do is when the user select m from the...
2
by: weston | last post by:
I have a form that has multiple option groups on it. When I created the form I copied the option groups and then changed the data source for them. But there now doesn't seem to be a caption for any...
1
beacon
by: beacon | last post by:
Hi everybody, I've searched around for answers, but the closest thing I've found referenced the Northwind database and it seems to be set up a little differently than mine. I'm using DAPs (data...
3
by: BarbaraB | last post by:
Is there anyway of returning the value of an option group (in access 2003) back to what it was before any entry was made? I frequenty find people are wishing to remove there answer but with an...
8
by: Dan2kx | last post by:
Hello, Is it possible to create an option group/frame that reacts to data in a table? So that as things are added to said table the option group (on a form) would automatically expand. Is...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.