color change

J

JIM.H.

Hello,
I am using this following Focus event to change the color
in a tabular form for filed f3. The problem: this
changes f3 field in all rows, I just want to changed the
color on the current filed.

Private Sub f3_GotFocus()
lngRed = RGB(255, 0, 0)
lngBlack = RGB(0, 0, 0)
lngYellow = RGB(255, 255, 0)
lngWhite = RGB(255, 255, 255)

Forms!form1!f3.BackColor = lngYellow
Forms!form1!f3.ForeColor = lngRed

End Sub

How can I do that?
Thanks,
Jim.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top