Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Developer Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Option Button Focus
Gregory Clancey 
    
3 years ago
In the normal Tab Order of a Form, when tabbing through the Controls, what part (if any) if an Option Button Control ("radio button") has the focus when it becomes current?
If on its "On Got Focus" Event I want to reveal the cursor's position on the control with a color change or font change, I'm looking for the Trigger I can use. Typically, I will switch this back to the original state "On Lost Focus."
Kevin Robertson  @Reply  
          
3 years ago
I am assuming your Option Buttons are placed directly on your form and not part of an Option Group.
You need the event of the control but you are setting the properties of the label.

Is this the sort of thing you are looking for (see screenshot)?
Kevin Robertson  @Reply  
          
3 years ago

Gregory Clancey OP  @Reply  
    
3 years ago
We're using a function here, right? I may have to wait until I throw a bit more Social Security money at Rick before I can swallow that bait; however, your response did lead to a simple subroutine approach that works and to which I'm content to cling until future enlightenment emboldens me.


(yes, you are correct. There is no Option Group)

Private Sub oBtn_GotFocus()
   Label31.ForeColor = vbRed
End Sub

--and--

Private Sub oBtn_LostFocus()
   Label31.ForeColor = vbBlack
End Sub
Kevin Robertson  @Reply  
          
3 years ago
OK. One bit of advice. I would give any control you are referring to in code a good name. As your looking at your code in the future you'll find yourself wondering what Label31 is.
Gregory Clancey OP  @Reply  
    
3 years ago
Good call, thanks.
It's like I was born on Saint Basil's feast day, but fortunately the calendar on the hospital wall had a picture of Pope Gregory which caught my mother's attention at just the right moment.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/7/2026 2:00:55 AM. PLT: 1s