johnlatona123
Innovator
- Local time
- Today, 01:40
- Joined
- Sep 20, 2011
- Messages
- 85
I have a zillion forms in my database and I needed to develop an automated kill-switch of sorts to handle some specific user issues. I’m open to other ideas, but the main purpose is to close forms and even the database based on user inactivity. i do not want this to effect reports however.
I need the to close a form based on an on-timer event macro (which I think I have figured out), BUT I want the timer for each individual form to reset and pause if that particular form loses focus. So that could be set as a lost-focus event of some type. I need that forms timer to remain in the paused state until the form regains focus.
I then need to restart the on-timer event macro based upon a gain-focus event that continues until either A) the form loses focus again, or B) the timer completes and close the form
It seems my options for the lost focus and gain focus events are going to be limited to VBA, I am not sure it would be possible to set macros for this function.
any ideas?
please advise.
thanks!
I need the to close a form based on an on-timer event macro (which I think I have figured out), BUT I want the timer for each individual form to reset and pause if that particular form loses focus. So that could be set as a lost-focus event of some type. I need that forms timer to remain in the paused state until the form regains focus.
I then need to restart the on-timer event macro based upon a gain-focus event that continues until either A) the form loses focus again, or B) the timer completes and close the form
It seems my options for the lost focus and gain focus events are going to be limited to VBA, I am not sure it would be possible to set macros for this function.
any ideas?
please advise.
thanks!