A family of Microsoft relational database management systems designed for ease of use.
Is a timer interval of 3,600,000 the equivalent of one hour?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I would like to force a front end to shut down at 11:50pm every night so that our automated compacting can run on the back end at 11:59pm.
Thanks in advance.
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Is a timer interval of 3,600,000 the equivalent of one hour?
I would say check it every 15 minutes. And I probably would extend the time.
I think I need some additional help.
I rewrote your code like this:
Private Sub Form_Timer()
'this form is my switchboard which is always open
If (Time() > #3:30:00 AM#) And (Time() < #4:00:00 AM#) Then
DoCmd.OpenForm "MaintenanceWarning"
Pause (3)
Application.Quit
End If
End Sub
I am telling network administrators to set the compact to run at around 3:45ish.
Question: How often do I need to set the timer interval? My head has officially exploded trying to calculate this :-0
And I don't want to unnecessarily tax the system by checking too frequently. And do I need to set a larger time span, like 4:30am instead of 4:00am to accommodate this?
Thanks in advance (and probably after, as well!)
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
I do this with one of my apps:
Private Sub Form_Timer()
If (Time() >= #7:00:00 PM#) Then
DoCmd.OpenForm "frmTimeClose"
End If
End Sub
This checks to see if the time is after 7PM. The time interval can be set to check however frequently you want where 1 sec = 1000. It then opens frmtimeClose which displays a message that the app will close down, then 1 minute later it closes.