troubleshooting Question

How to highlight textboxes on continuous form using Got Focus/Lost Focus in access?

Avatar of Jarred Meyer
Jarred MeyerFlag for United States of America asked on
Microsoft Access
4 Comments2 Solutions2121 ViewsLast Modified:
I set up my textboxes to highlight when On Got Focus and then change back to white On Lost Focus on my continuous form. The problem I notice is that when it highlights the textbox for the particular row it does the same for all of the rows.. Is there a way to highlight just within the detail row that the box is selected?

Here is my vba for On Focus and Lost Focus for one of the textboxes.

Private Sub AssemblySeq_GotFocus()

Me.AssemblySeq.BackColor = RGB(153, 204, 255)

End Sub

Private Sub AssemblySeq_LostFocus()

Me.AssemblySeq.BackColor = vbWhite

End Sub

Thanks for the help!

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros