If you choose to go with the On Timer event in Access
you would need to do something like this in a module -
Public Function Access_Cron()
Weekday
If Weekday(Now()) And CStr(Time()) = "7:51:00 PM" Then
MsgBox "Time is 8PM EST"
End If
End Function
In the On Timer you would mere need to have the function call Access_Cron and the Timer Interval set to what you desired 1000 equal 1 second.
Not sure what operating system you are using, but you can run a scheduled task. from the Start Bar:
Start, Programs, Accessories, System Tools, Scheduled Tasks, Add Scheduled Task; then follow the prompts of the wizard. If you wanted to trigger an Access program, they you'd have to set up the command line parameters / autoexec appropriately; alternatively, depending on what it is you're tyring to do, a simple DOS batch file; VB executable or whatever could be options.
Just thought I'd provide this as an alternative option, where you dont need to make sure that Access and the OnTimer event are ticking over at the time.
Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
(dont cut corners or you'll go round in circles)
I'll second Steve's offering, but add that if you have admin rights on your PC, you can set up the scheduled task to run, even if you are not logged in, useful for those overnight jobs.
Ben
----------------------------------------------
Ben O'Hara
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.