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

Getting values from radio button group.

Hi all,

I have a small problem with Access radio button groups in VBA. I've got a
radio button group called fraSearchMode with three radio buttons in it. At a
certain point, I want to see which radio button is selected and store the
value (1, 2 or 3) in a Byte variable. Now, I assumed that this was a simple
case of choosing the button you wanted and checking the fraSearchMode.Value
property for value 1, 2 or 3. Apparently this is not so. :)
I've tried searching the net for info on this and come up with nothing (not
many resources for Access VBA....loads on Excel) and my Office Help is
playing up. Can somebody tell me how to get the currently selected radio
button in a group, please?

Thanks!

Jon.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003
Nov 12 '05 #1
1 47820
HJ
Your code is correct. Me.fraSearchMode.Value represents the currently
selected radio button. Make sure that your option buttons are part of the
option group.

HJ

"Rage Matrix" <ra**@matrix13.freeserve.co.uk> wrote in message
news:bi**********@newsg4.svr.pol.co.uk...
Hi all,

I have a small problem with Access radio button groups in VBA. I've got a
radio button group called fraSearchMode with three radio buttons in it. At a certain point, I want to see which radio button is selected and store the
value (1, 2 or 3) in a Byte variable. Now, I assumed that this was a simple case of choosing the button you wanted and checking the fraSearchMode.Value property for value 1, 2 or 3. Apparently this is not so. :)
I've tried searching the net for info on this and come up with nothing (not many resources for Access VBA....loads on Excel) and my Office Help is
playing up. Can somebody tell me how to get the currently selected radio
button in a group, please?

Thanks!

Jon.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003

Nov 12 '05 #2

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

Similar topics

1
by: Mark Goldin | last post by:
I have a simple html page with a radio button group on it. I am submitting that page into an asp page. How do I know what button the user has checked? Thanks
1
by: Rick | last post by:
After being frustrated with this issue on several occasions I think I found the secret sauce for solving the issue after reading a few different messages about what others thought and trying a...
0
by: Savvas | last post by:
Hi all I still havent managed to bind the radio buttons. I have two radio buttons in a groupbox. Adding a record and choosing either one of the two i have no problem - the correct boolean value...
3
by: lee | last post by:
Hello I need some javascript code I've written to handle 2 values from an HTML form. I've been successful using the "label" attribute (I've simplied the example below): <input type="radio"...
2
by: Ken Saganowski | last post by:
Is there an easy way to access the selected value of a radio button group in ASP.Net/c#?
3
by: Flip | last post by:
In setting up a radio button group last night, I added two radio buttons, gave each of them their respective name and gave them both the same group name. So far so good. But then when I tried to...
0
by: David Hearn | last post by:
I have a datalist with an ItemTemplate set up. In the item template, I have a radio button. I have set the groupname on the radio button so that you should only be able to have one radio button...
7
by: nathaniel.k.lee | last post by:
Is it not possible, in IE, to dynamically click a radio button? I'm grabbing some values from a database and using them to populate radio buttons on a page. I have alternate code for Firefox...
0
by: M. Ali Qureshi | last post by:
Hi, I have 3 radio buttons on my page with different IDs, but they are grouped with name "Q1". I need to add some kind of validator on them so that user must have to select one of them. I...
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:
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...
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
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...
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...

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.