RichieP
Rock on!
- Local time
- Today, 07:08
- Joined
- Apr 16, 2003
- Messages
- 48
I have a form with an unbound txtbox. The default for the txtbox is "01-Jan-1900". I don't want the user to see this date but if they change it then they should see it. In the before update action for the txtbox I put in this code:
If Me.txtDate1 = "01-Jan-1900" Then
Me.txtDate1.ForeColor = 16777215
Else
Me.txtDate1.ForeColor = 0
I'm presuming that 16777215 = white (the same colour as the background). However, it doesn't work, what am I doing wrong??? Please help.
If Me.txtDate1 = "01-Jan-1900" Then
Me.txtDate1.ForeColor = 16777215
Else
Me.txtDate1.ForeColor = 0
I'm presuming that 16777215 = white (the same colour as the background). However, it doesn't work, what am I doing wrong??? Please help.