Free Lessons
Fast Tips
Topic Index
Home   Courses   Seminars   Templates   TechHelp   Forums   Help   Contact   Join   Order   Logon  
Home > TechHelp > Directory > Access > On Activate < Force New Page | Activate v Got Focus >
On Activate
By Richard Rost   Richard Rost on LinkedIn Email Richard Rost   2 months ago

On Activate Event to Highlight Active Form in Access

 S  M  L  XL  FS  |  Slo  Reg  Fast  2x  |  Bookmark Join Now

In this Microsoft Access tutorial, I'm going to teach you how to use the On Activate event to highlight the active form and turn it yellow when you click on it, to make it more easily visible to the user.

Harper from Seattle, Washington (a Platinum Member) asks: Is there any way to highlight the current form that has focus? Our database uses a bunch of different forms, and sometimes it's hard to keep track of which one you're on. I know how to use conditional formatting to highlight the field you're on, but it would be nice if the whole form turned yellow too. I tried using the On Got Focus event for the form, but that doesn't seem to do anything.


  • Thanks to Thomas Gonder for posting that the Activate and Deactivate events don't fire if you use acDialog when opening your form, or if the form's Popup property is set to Yes. For me, personally, this is never a problem because I absolutely hate the PopUp property and never use it. If you open a form using acDialog, that essentially sets the Modal and PopUp properties to true.


There is no Extended Cut, but here's the database for the Gold members.

Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the database template from class plus get access to the Code Vault. If you signed up on YouTube you have to register on my YouTube Find User page so I can set up your account here on my web site. If you're not a member, Join Today!



Recommended Courses


  • Form Level Variable: Dim StartColor As Long
  • On Load Event: StartColor = Me.Detail.BackColor
  • On Activate Event: Me.Detail.BackColor = vbYellow
  • On Deactivate Event: Me.Detail.BackColor = StartColor

Learn More

FREE Access Beginner Level 1
FREE Access Quick Start in 30 Minutes
Access Level 2 for just $1

Free Templates

TechHelp Free Templates
Blank Template
Contact Management
Order Entry & Invoicing
More Access Templates


Mailing List - Get emails when new videos released
Consulting - Need help with your database
Tip Jar - Your tips are graciously accepted


Please feel free to post your questions or comments below or post them in the Forums.

KeywordsOn Activate Event in Microsoft Access

access 2016, access 2019, access 2021, access 365, microsoft access, ms access, ms access tutorial, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #learn, #lesson, #training, #database, On Activate Event, Form Highlighting, Form Focus, Active Form, User Experience, Form Navigation, Form Activation



Comments for On Activate
Age Subject From
2 monthsDoesn't Always WorkThomas Gonder
2 monthsOn ActivateJohn Davy


Start a NEW Conversation
Only students may post on this page. Click here for more information on how you can set up an account. If you are a student, please Log On first. Non-students may only post in the Visitor Forum.
Subscribe to On Activate
Get notifications when this page is updated

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

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

Copyright 2023 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 10/1/2023 6:24:10 AM.
Keywords: TechHelp Access On Activate Event, Form Highlighting, Form Focus, Active Form, User Experience, Form Navigation, Form Activation  PermaLink  On Activate Event in Microsoft Access