Auto close Access after time period of non usage

Posted on 2011-03-15
Last Modified: 2012-08-14
Is there anything that can be added to an MS Access Database that closes the Apllication if there has been a 30min period of non usage?
Question by:JSSenior
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 120

Accepted Solution

Rey Obrero (Capricorn1) earned 250 total points
ID: 35137166
see the method discussed here
How to detect User Idle Time or Inactivity in Access

Assisted Solution

IT-Factory earned 250 total points
ID: 35137169
Use this on a form

sub form_load()
  Me.timerinterval = 30000
end sub

sub from_timer()
end sub

Open in new window


Author Comment

ID: 35139218

Thanks for this, it seems to work but not always, any ideas why this may be?
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

LVL 75
ID: 35139690

This works ... I've tested it:

As does this (related):

Both are free ...

LVL 75
ID: 35362573
Just curious, did you try Peter's solution.  It always works ;-)


Author Comment

ID: 35362614
I never got to it, unfortunately so many other things have taken priority. Hope to get back on it next week, thanks for the info
LVL 75
ID: 35362634
Also curious how the Assisted answer closes Form after no activity. Nothing in that code resets the time if activity *occurs*.  Did you test this?


Author Comment

ID: 35362658
It was a while ago from what i remember i had to mess woth code a bit.

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question