color change

  • Thread starter Thread starter JIM.H.
  • Start date Start date
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.
 
Back
Top