G
Guest
Hi Everyone,
I have a form with about 50 TxtBoxes in it. Each TxtBox is to display a date
and the dates change with different condition. What I want to do is to let
certain Txtboxes blink and change the fore color when some specific date is
displayed in them.
I put this in my update CmdButton
If TxtBox1 = #certain date# Then
Me![TxtBox1].ForeColor = vbRed
Me.TimerInterval = 500
ElseIf TxtBox2 = #certain date# Then
Me![TxtBox2].ForeColor = vbRed
Me.TimerInterval = 500
......
..End If
The in my form's On Timer event I put
If TxtBox1 = #certain date# Then
Me![TxtBox1].Visible = Not Me![TxtBox1].Visible
ElseIf TxtBox2 = #certain date# Then
Me![TxtBox2].Visible = Not Me![TxtBox2].Visible
.......
..End If
Although TxtBox1 and TxtBox2 should blink and change the fore color with
certain condition, only the first one, i.e. TxtBox1, works. Can anyone tell
me how to do this? Thank you.
I have a form with about 50 TxtBoxes in it. Each TxtBox is to display a date
and the dates change with different condition. What I want to do is to let
certain Txtboxes blink and change the fore color when some specific date is
displayed in them.
I put this in my update CmdButton
If TxtBox1 = #certain date# Then
Me![TxtBox1].ForeColor = vbRed
Me.TimerInterval = 500
ElseIf TxtBox2 = #certain date# Then
Me![TxtBox2].ForeColor = vbRed
Me.TimerInterval = 500
......
..End If
The in my form's On Timer event I put
If TxtBox1 = #certain date# Then
Me![TxtBox1].Visible = Not Me![TxtBox1].Visible
ElseIf TxtBox2 = #certain date# Then
Me![TxtBox2].Visible = Not Me![TxtBox2].Visible
.......
..End If
Although TxtBox1 and TxtBox2 should blink and change the fore color with
certain condition, only the first one, i.e. TxtBox1, works. Can anyone tell
me how to do this? Thank you.