Hi

I want to find out a time between two times.
For an example my program must be closed automatically at a time between 1 am and 6 am
I use a timer to check the time
My code is
Code:
Private Sub Timer1_Timer()
If Time > "1:00:00 AM" And Time < "6:00:00 AM" Then
End
End If
End Sub
But this is always true and close my program at any time.

Can anybody suggest a solution to close my program between 1 am and 6 am

Nasreen