I wish to close my DB at a certain time at night and am using this very simple code but it only work on the exact time, can someone advise how to implement a between time I have a hidden form which opens with the DB and uses a timer event to run this code
Private Sub Form_Timer()
Me.CurrentTime.Value = Time()
If Me.BackupT = Me.CurrentTime Then
Application.Quit (acQuitSaveAll)
End If
End Sub
What I would like is to have a range of time ie 30minutes where the DB cannot be started
any advise appricated
S
Private Sub Form_Timer()
Me.CurrentTime.Value = Time()
If Me.BackupT = Me.CurrentTime Then
Application.Quit (acQuitSaveAll)
End If
End Sub
What I would like is to have a range of time ie 30minutes where the DB cannot be started
any advise appricated
S