I'm looking to add a schedule task which will trigger a call to an MS Access Sub. Should I write a script or are there in built MS Access features which would facilitate the automatic invoking of the following sub.
I didnt work on VB before. I have checked this other question on stackoverflow. How to schedule a call to an MS Access macro?
But the question was about Macro. I tried running it but it didnt work. Sub I am trying to add to a schedule task.
Private Sub cmdArchive_Click()
DoCmd.Hourglass True
DoCmd.OpenQuery "qryArchive"
setDBConst "last_archive", CStr(Now)
DoCmd.Hourglass False
MsgBox "Today's Events have been archived.", vbOKOnly, "Archive Complete"
End Sub