B
B F Cole
I have some forms with a large number of data entry fields. I'm using the
technique below to visually highlight where the user is on the form. This
highlights the label for the field and the data entry field. This is tedious
to code the On Enter and On Exit to turn on and off the highlighting for
every field. Is there a way to do this "globally" for the form? I'm using
default gray detail with white fields.
Public Const iCyan = 1234567 ' Whatever the number is for
cyan
Public Const iWhite = 12345678 ' Whatever the number is for
white
Public Const iGray = 123456789 ' Whatever the number is for
gray
' Set label and field to cyan
Private Sub Field1_Enter()
Me.LabelField1.Backcolor = iCyan
Me.Field1.Backcolor = iCyan
End Sub
' Return label and field to original colors
Private Sub Field1_Exit(Cancel as Integer)
Me.LabelField1.Backcolor = iGray
Me.Field1.Backcolor = iWhite
End Sub
Thanks for your usual fine suggestion,
Bill
technique below to visually highlight where the user is on the form. This
highlights the label for the field and the data entry field. This is tedious
to code the On Enter and On Exit to turn on and off the highlighting for
every field. Is there a way to do this "globally" for the form? I'm using
default gray detail with white fields.
Public Const iCyan = 1234567 ' Whatever the number is for
cyan
Public Const iWhite = 12345678 ' Whatever the number is for
white
Public Const iGray = 123456789 ' Whatever the number is for
gray
' Set label and field to cyan
Private Sub Field1_Enter()
Me.LabelField1.Backcolor = iCyan
Me.Field1.Backcolor = iCyan
End Sub
' Return label and field to original colors
Private Sub Field1_Exit(Cancel as Integer)
Me.LabelField1.Backcolor = iGray
Me.Field1.Backcolor = iWhite
End Sub
Thanks for your usual fine suggestion,
Bill