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

Radio button groups are null

I've researched the archives and cannot find this subject
discussed...Sometimes during debug sessions Radio Button groups or
Check Boxes are filled in with a dotted pattern as if they were set to
NULL or never were initialized. This is not the case as I always
initialize both of these controls in the code. On occasion, I have to
click each Radio Button, in turn, to remove the dot pattern from each.
Later on in the session they sometimes revert to the NULL state. I do
not change any of these controls programmatically - only by clicking.

Obviously, neither I, nor my code can make a logical decision with
these controls in an unknown state. I have seen references to Triple
State controls but find no such property. Any ideas?

Hank Reed

Nov 13 '05 #1
2 2451
Try setting the Default Value of the group to 1 (or whatever is the value of
the first button). That is usually enough, without any code.

Are you using Filter By Form? Unbound controls can revert to Null after FBF.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Hank" <ha********@aol.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
I've researched the archives and cannot find this subject
discussed...Sometimes during debug sessions Radio Button groups or
Check Boxes are filled in with a dotted pattern as if they were set to
NULL or never were initialized. This is not the case as I always
initialize both of these controls in the code. On occasion, I have to
click each Radio Button, in turn, to remove the dot pattern from each.
Later on in the session they sometimes revert to the NULL state. I do
not change any of these controls programmatically - only by clicking.

Obviously, neither I, nor my code can make a logical decision with
these controls in an unknown state. I have seen references to Triple
State controls but find no such property. Any ideas?

Hank Reed

Nov 13 '05 #2
Try setting the Default Value of the group to 1 (or whatever is the value of
the first button). That is usually enough, without any code.

Are you using Filter By Form? Unbound controls can revert to Null after FBF.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Hank" <ha********@aol.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
I've researched the archives and cannot find this subject
discussed...Sometimes during debug sessions Radio Button groups or
Check Boxes are filled in with a dotted pattern as if they were set to
NULL or never were initialized. This is not the case as I always
initialize both of these controls in the code. On occasion, I have to
click each Radio Button, in turn, to remove the dot pattern from each.
Later on in the session they sometimes revert to the NULL state. I do
not change any of these controls programmatically - only by clicking.

Obviously, neither I, nor my code can make a logical decision with
these controls in an unknown state. I have seen references to Triple
State controls but find no such property. Any ideas?

Hank Reed

Nov 13 '05 #3

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

Similar topics

1
by: Michael Albanese | last post by:
I am developing an application to handle my compay's OSHA reporting requirements. Some of the input criteria are technical and narowly defined, so I was trying to prvide what i call "Context...
15
by: tabonni | last post by:
I want to check each button groups and save the checked value into a 2 dimensional array. But, it doesn't work. Could anyone tell me what's wrong with my code. My code is as follow: <html>...
1
by: sman | last post by:
Hi, I recently read this article on About.com on how to create required fields for a form: http://javascript.about.com/library/scripts/blformvalidate.htm Everything works great except that there...
6
by: Craig Keightley | last post by:
I have a page that has n number of radio groups (yes/No) how can i prevent the form being submitted if more than one radio group is not selected? By default all radio groups are unchecked ...
0
by: Hank | last post by:
I've researched the archives and cannot find this subject discussed...Sometimes during debug sessions Radio Button groups or Check Boxes are filled in with a dotted pattern as if they were set to...
33
by: Brian | last post by:
I have a list of plain HTML radio buttons that I want to be able to loop through, get the values from them and insert them into a db. each one should be a separate record... Can anyone please give...
3
by: Amelyan | last post by:
When we want radio button to belong to a group name we say, radio1.GroupName="GroupA". In this case, radio1 will be unselected if another radio button is selected in "GroupA". Is there a way...
8
by: David Cameron | last post by:
I noticed that using an HTMLInputRadioButton and specifying a value to be an empty string (""), this is overridden by ASP.Net which set the value of the control to be the same as the ID of the...
8
by: photoboy | last post by:
I have racked by brain long enough on this, so now I need the help of someone who knows what they are doing. Here is what I am trying to achieve: First, I have two radio buttons (both unchecked)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
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
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,...

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.