Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Close Access after period of inactivity/idleness

Posted on 2004-09-22
4
Medium Priority
?
583 Views
Last Modified: 2012-06-27
I have administrative rights in a company of 50+ employees, and I need to be able to automatically close Access after a period of inactivity.  Does anyone know how to accomplish this.  This database is not connected to SQL Server.  
0
Comment
Question by:pmle
4 Comments
 
LVL 66

Accepted Solution

by:
Jim Horn earned 500 total points
ID: 12124675
Nope.  Access does not have this ability.

What can get you close is to have a form running in the background, with an ourrageously long Timer interval (say 1 hour (in seconds) x  1,000 ), that closes the application.  You'd have to build the logic to determine if the app has actually been used during this time period.

Hope this helps.
-Jim
0
 
LVL 26

Assisted Solution

by:dannywareham
dannywareham earned 500 total points
ID: 12125068
I use something slightly different - but still along the same lines

Set your form timer as Jim suggests
then have an OnMouseMove event that resets the timer:

Me.form.timer = 0
Me.form.timer = 10000   ' your original value

I have found a glitch with this though - sometimes (especially in Acc97), you have to put this in the mouseover event of every control on your form....

:-(

0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

916 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