Well, you can use the TIMER event of a form to check on something within a particular time - the event interval is marked in MILLISECONDS, so to check for something, say, every 10 seconds, you do this:
1) set the TimerInterval to 50000
2) use the ON TIMER event to do something
The timer event fires every time the interval cycles.
Now, the thing is, WHERE are you gonna put this guy, and what are you gonna check for? Keystrokes on a form? Which form? ANY form? Maybe a main menu which you leave OPEN (but hidden when not in use) ?? Trouble is, you might leave the menu form, open a second form, and spend an hour working that form. But the menu, after 60 minutes without focus or a keystroke, thinks you're idle.. That's not what you want.
Somehow, you need to ascertain WHAT object and/or under what circumstances you want to START the timer with, and how to reset it.
Jim
Me? Ambivalent? Well, yes and no....
Another free Access forum:
More Access stuff at