Exit app on timer

M

matt weyland

just create a sub that once the counter has reached a
particular time of inactivity close the DB

public sub ShutDown()

msgbox "App shutting down"
timer
docmd.quit

end sub

on the sub for the timer

if timer >= x minutes call shutdown()



That should do it
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top