Thanks guys for the efforts so far. I inadvertently forgot to include where my second code is. Here is my thought.
I have several fields on my form. Among the fields, I have a field called Number. I also have a label called lblProcessing placed in the form property timer to alternate/flash. Now, I want for the timer to be activated after updating the 'Number' field; when timer is activated, the label 'lblProcessing' will flash, else the timer interval is set at 0 and nothing which means the Number field is empty. My first code:
- Private Sub Form_Current()
-
If Me.Number = "*" Then
-
Me.TimerInterval = 500
-
Else
-
Me.TimerInterval = 0
-
Me.lblProcessing.Visible = False
-
End If
-
End Sub
says if the number field is updated then the timer is activated the the 'lblProcessing' label is visible and flashes, else the timer is set at 0 and the 'lblProcessing label stops flashing and not visible.
My second code
- Private Sub Form_Timer()
-
With Me.lblProcessing
-
.Visible = Not Me.lblProcessing.Visible
-
End With
-
End Sub
runs the timer for the 'lblProcessing' label to flash if the timer is activated.
I hope I have provided some clarity.
Thanks