J
Jock W
I have set the following control on the 'timer' event:
Private Sub Form_Timer()
With Me.[um_lab]
.ForeColor = (IIf(.ForeColor = vbRed, vbBlack, vbRed))
End With
End Sub
In the 'current' event I have this:
Private Sub Form_Current()
If Me![um_lab].<NOW() Then
Me.TimerInterval = 300
Else
Me.TimerInterval = 0
Me.[um_lab].ForeColor = vbBlack
End If
End Sub
The result is red/black flashing data in the 'um_lab' text box when the
date in there is less than todays.
I wish to duplicate this in a second field (um_part), but I get errors when
I duplicate
the code and just change the names.
Can I put a 'list' in the code of text boxes that will be changed by the
settings, or do I have to put a seperate entry for each text box?
tia.
Private Sub Form_Timer()
With Me.[um_lab]
.ForeColor = (IIf(.ForeColor = vbRed, vbBlack, vbRed))
End With
End Sub
In the 'current' event I have this:
Private Sub Form_Current()
If Me![um_lab].<NOW() Then
Me.TimerInterval = 300
Else
Me.TimerInterval = 0
Me.[um_lab].ForeColor = vbBlack
End If
End Sub
The result is red/black flashing data in the 'um_lab' text box when the
date in there is less than todays.
I wish to duplicate this in a second field (um_part), but I get errors when
I duplicate
the code and just change the names.
Can I put a 'list' in the code of text boxes that will be changed by the
settings, or do I have to put a seperate entry for each text box?
tia.