Go Back   Access World Forums > Microsoft Access Discussion > Forms

 
Reply
 
Thread Tools Rate Thread Display Modes
Old 10-19-2018, 09:18 AM   #1
Tupacmoche
Newly Registered User
 
Join Date: Apr 2008
Posts: 189
Thanks: 54
Thanked 4 Times in 4 Posts
Tupacmoche is on a distinguished road
Radio Button Focus

Form Masters,

This may be simple but can't find solution. What, I want to do is not only select a radio button from a set but also have the dot that is in the center of the radio button display that I have selected it. So, my code is:

Me.OptionGA.SetFocus

This works fine the object shows a broken dashed line around it. But, I also want the dot in the center to show that it is selected. Is this possible?

Tupacmoche is offline   Reply With Quote
Old 10-19-2018, 09:24 AM   #2
pbaldy
Wino Moderator
 
pbaldy's Avatar
 
Join Date: Aug 2003
Location: Nevada, USA
Posts: 32,028
Thanks: 10
Thanked 3,861 Times in 3,804 Posts
pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold
Re: Radio Button Focus

In a frame? You'd set the value of the frame to the value for that option.
__________________
Paul
Microsoft Access MVP

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
pbaldy is offline   Reply With Quote
Old 10-19-2018, 10:40 AM   #3
Tupacmoche
Newly Registered User
 
Join Date: Apr 2008
Posts: 189
Thanks: 54
Thanked 4 Times in 4 Posts
Tupacmoche is on a distinguished road
Re: Radio Button Focus

I tried this but it gave me an error msg:

Me.FrameGiftAlloc = Me.OptionGA

What do, I have to change?

Tupacmoche is offline   Reply With Quote
Old 10-19-2018, 10:42 AM   #4
pbaldy
Wino Moderator
 
pbaldy's Avatar
 
Join Date: Aug 2003
Location: Nevada, USA
Posts: 32,028
Thanks: 10
Thanked 3,861 Times in 3,804 Posts
pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold pbaldy is a splendid one to behold
Re: Radio Button Focus

I was thinking:

Me.FrameGiftAlloc = 3

or whatever the numeric option value was of the item you wanted selected.
__________________
Paul
Microsoft Access MVP

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
pbaldy is offline   Reply With Quote
Old 10-21-2018, 10:35 AM   #5
Pat Hartman
Super Moderator
 
Join Date: Feb 2002
Location: Stratford,Ct USA
Posts: 27,431
Thanks: 13
Thanked 1,419 Times in 1,353 Posts
Pat Hartman is a glorious beacon of light Pat Hartman is a glorious beacon of light Pat Hartman is a glorious beacon of light Pat Hartman is a glorious beacon of light Pat Hartman is a glorious beacon of light Pat Hartman is a glorious beacon of light
Re: Radio Button Focus

When working with option groups, you always address the "group" control. You never address the individual items. When you give the group control the value for the third item, Access takes care of checking the button (or making it look depressed if it is a button rather than a radio button or checkbox) to indicate which value was selected. When you click on one of the buttons in the interface, Access figures out what value the pressed button contains and places that value in the .value property of the group control.

__________________
Bridge Players Still Know All the Tricks
Pat Hartman is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
radio button/choice button help soccerguy15 Forms 8 11-15-2007 05:48 AM
How to deselect a radio button dbanker Forms 0 06-29-2006 05:33 AM
Join Radio Button cherosoullis Forms 1 06-26-2006 12:28 AM
Did Access97 have radio button? puffdog General 2 07-30-2003 12:50 AM
Radio Button Values srideout2525 Reports 1 07-27-2003 12:47 PM




All times are GMT -8. The time now is 11:37 PM.


Microsoft Access Help
General
Tables
Queries
Forms
Reports
Macros
Modules & VBA
Theory & Practice
Access FAQs
Code Repository
Sample Databases
Video Tutorials

Sponsored Links

How to advertise

Media Kit


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
(c) copyright 2017 Access World