Avatar of Jarred Meyer
Jarred Meyer
Flag for United States of America asked on

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

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!
Microsoft Access

Avatar of undefined
Last Comment
Jarred Meyer

8/22/2022 - Mon
Bill Ross

Hi,

This is normal operation.  Note that in a continuous form all text boxes have the same name per record so when you change the text box property of Me.AssemblySeq you are referring to each one of them per record.

Regards,

Bill
SOLUTION
Rey Obrero (Capricorn1)

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Jarred Meyer

ASKER
Oh geez that is fantastic... I never even noticed the Got Focus option in there.. Learn something new every day.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy