Dim Repeat As Boolean
'Declare a Form Global variable to hold the
'seconds expired since Form was opened.
Dim TimeCount As Long
'Timer Event For Marquee
If Repeat = False Then
' Me.TimerInterval = 0
'Call RefreshLinks
Repeat = True
Else
'Get first character
Dim FChar As String
FChar = Left(Me.LblMarquee.Caption, 1)
'Remove first character
Me.LblMarquee.Caption = Mid$(Me.LblMarquee.Caption, 2, Len(Me.LblMarquee.Caption) - 1)
'Put 1st character at the end of the message.
Me.LblMarquee.Caption = Me.LblMarquee.Caption + FChar
End If
TimerInterval is 200
'**************************************************************************************************
'Increment the TimerCount variable by 1
TimeCount = TimeCount + 1
'Display the current seconds remaining in the
'small Label control located in the upper right
'corner of the Form.
Me.Cnter.Caption = 30 - TimeCount
'If the Seconds Counter (TimerCount) is now equal
'to 61 seconds then Close the Password Entry Form.
If TimeCount = 31 Then
DoCmd.Quit
End If
Private Sub Form_Unload(Cancel As Integer)
'When the Form closes or is put into Design view
'then Zero the Form's TimerInteval. If you don't
'it can cause some strange things to happen.
Me.TimerInterval = 0