Hello all,
I take my database backup every one hour for some critical reasons and during that time i want the close the database from all the users. When i googling i found the below code but i dont know how can i modify this to run for every one hour and where to place this query in my database...
Private Sub Form_Timer()
If (Time() >= #6:26:00 AM# And Time() <= #6:29:00 AM#) Then
MsgBox "System Maintenance On-going. Please check back after 3 minutes.", vbOKOnly
DoCmd.Quit acQuitSaveAll
End If
End Sub
I am brand new to Access...Your help greatly appreciated...
I take my database backup every one hour for some critical reasons and during that time i want the close the database from all the users. When i googling i found the below code but i dont know how can i modify this to run for every one hour and where to place this query in my database...
Private Sub Form_Timer()
If (Time() >= #6:26:00 AM# And Time() <= #6:29:00 AM#) Then
MsgBox "System Maintenance On-going. Please check back after 3 minutes.", vbOKOnly
DoCmd.Quit acQuitSaveAll
End If
End Sub
I am brand new to Access...Your help greatly appreciated...