in the After_Update event of your textbox you can write some code like
this:
Private Sub Text1_AfterUpdate()
If Len(Text1.Text) > 0 Then Text1.ForeColor = vbBlue
End Sub
So if a user enters some text into Text1, when the user leaves Text1,
the text content of Text1 will change to blue. There are vb color
constants (in the help files) of basic colors like black, white, yellow,
blue, red, green, cyan, magenta. You can also use colors from the
Property Sheet of the textbox (in the design view of the form). If you
pick a color for your font (ForeColor property in the textbox property
sheet) from the color grid (click on the elipses ... button to the right
of the ForeColor Property to get the color grid), the color you select
will have a numeric value in the ForeColor property like 16711680 for
blue. You can write code like this to use the color number:
Private Sub Text1_AfterUpdate()
If Len(Text1.Text) > 0 Then Text1.ForeColor = 16711680
End Sub
Using the color number gives you more variety of colors you can use.
HTH
Rich
*** Sent via Developersdex
http://www.developersdex.com ***