>I have numerous users running an app that accesses shared tables. The users don't always shut down the app (there is a main form that runs) and therefore I can't open any tables exclusively after hours via remote. Is there a way to sense inactivity of the form, and QUIT after a specified timer interval? Thanks.
Basically, you can use a Timer object, and reset it every time the user presses data. I think that this is not exactly simple.
A much simpler solution is to throw your users out when you need to do maintenance. Have a Timer in your application check every 2 minutes for the existence of a file with a name like "maintenance.tmp". If the file is found, call your applications OnQuit() method, or whatever it is called.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)