http://support.microsoft.com/?kbid=210297
Here's the only real difference in my code compared to what they have.
Code:
Sub IdleTimeDetected(ExpiredMinutes)
If Screen.ActiveForm.Dirty Then
Screen.ActiveForm.Dirty = False
End If
DoCmd.OpenForm "frmLogin"
DoCmd.Close acForm, Screen.ActiveForm
End Sub
I tried the code to close the application and that works. What I want to do is to see if the form that is being worked on has been idle for a period of time, save what work has been done if any, open the log in form, and close the current form.