G
Guest
Greetings
I am trying to make a label on a form flash for a certain amount of time (5
seconds) then the label will become invisible, and some other controls become
visible. I can't seem to get the timer event to work right. Here is the most
recent code;
Option Compare Database
Option Explicit
Dim intTime As Integer
Private Sub Form_Load()
intTime = 0
Me.TimerInterval = 500
End Sub
Private Sub Form_Timer()
intTime = intTime + 1
For intTime = 0 To 10
Me.lblLoadMessage.Visible = Not Me.lblLoadMessage.Visible
Next intTime
Me.lblLoadMessage.Visible = False
End Sub
I've tried several variations with Do...Loop statements, If...Then
statements, putting "intTime = intTime + 1" inside and outside of the loop,
etc but nothing seems to work (actually I think it is working, but "intTime"
is incrementing so fast that you don't see anything happening, I could be
wrong though)
Any Ideas?
Thanks in advance
I am trying to make a label on a form flash for a certain amount of time (5
seconds) then the label will become invisible, and some other controls become
visible. I can't seem to get the timer event to work right. Here is the most
recent code;
Option Compare Database
Option Explicit
Dim intTime As Integer
Private Sub Form_Load()
intTime = 0
Me.TimerInterval = 500
End Sub
Private Sub Form_Timer()
intTime = intTime + 1
For intTime = 0 To 10
Me.lblLoadMessage.Visible = Not Me.lblLoadMessage.Visible
Next intTime
Me.lblLoadMessage.Visible = False
End Sub
I've tried several variations with Do...Loop statements, If...Then
statements, putting "intTime = intTime + 1" inside and outside of the loop,
etc but nothing seems to work (actually I think it is working, but "intTime"
is incrementing so fast that you don't see anything happening, I could be
wrong though)
Any Ideas?
Thanks in advance