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

How to set another values to radio buttons with default values of 1, 2?

Tinay21
I made an option box with a Frame named "Serious"
with an option of Yes or No. How can i stored the value of it to my Table that is Yes or No instead of 1 o 2? Thanks
May 20 '15 #1
2 1052
Shem K
40
Hi Tinay.
One way that worked for me is creating another table with the Yes or No values in one field (this field should not be a primary key. Let's say the table name is Yes or No), then generate a look up combo box at your Serious Frame, with Yes or No field as your source table.
May 20 '15 #2
zmbd
5,501 Expert Mod 4TB
first I wouldn't change the field type to the yes/no.
Allen Browne: Why I stopped using Yes/No fields nor actually store that as text in your database.

Option buttons will not return text values.

You can use conditional function in your forms and reports to show "Yes" or "No" to the user on an as needed basis.

Shem K's suggestion is one option provided you need to update values/choices; however, may not really be needed depending what you are attempting and can be... well... difficult down the road, once again, depending on your application.
May 20 '15 #3

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

Similar topics

1
by: Programmer | last post by:
Hi All Here is my problem I'm using a SQLDataAdapter and DataSet I use the method FillSchema(myDataset, SchemaType.Source) The problem is that when i Check the default Values of the Dataset...
2
by: Jeff Sandler | last post by:
I've seen several messages in this group with this question and no reply. Simply stated, how do you send the status of a group of radio buttons to a JavaScript function? I have a large project...
2
by: Rob | last post by:
Hi all, I've got multiple sets of radio button that are dynamically created in code and populated by a database query. The query returns about 20 recordsets with 3 radio buttons per recordset and...
2
by: James P. | last post by:
Help, I need to display radio buttons on a form. The data is from SQL table: each row in each table is displayed as a radio button. I have multiple SQL tables so I understand I need to put...
4
by: Ed Jay | last post by:
I use window.document.form1.myCheckbox.checked=false; to uncheck (reset) several checkboxes. What is an equivalent for resetting a set of interrelated radio boxes? -- Ed Jay (remove M to...
1
by: bungle | last post by:
Hi, I want to generate a questionnaire from questions held in SQL Server on my windows application. The format will always be the same - a question and then four radio buttons with values 1...
0
by: sanmateof | last post by:
My radio buttons are showing the value besides the button even though no text is displayed. Below is my code: <td style="width: 100px"><asp:RadioButtonList ID="RadioButtonList16" runat="server"...
3
by: teddysnips | last post by:
Back in the dim mists of antiquity I used to program in VBA for Microsoft Access (hey, don't knock it - very useful tool for the right application). This had a really handy control in the...
2
by: rhonda6373 | last post by:
Hello, I am trying to change a filter for a subform (Default) that has a filter based on a drop down box with a Search button to a filter based on radio buttons. However, I don't understand...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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.