Solved

Auto close Access after time period of non usage

Posted on 2011-03-15
8
447 Views
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?
0
Comment
Question by:JSSenior
8 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 250 total points
ID: 35137166
see the method discussed here
How to detect User Idle Time or Inactivity in Access
http://support.microsoft.com/?kbid=210297
0
 
LVL 2

Assisted Solution

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

sub form_load()
  Me.timerinterval = 30000
end sub

sub from_timer()
  me.close()
end sub

Open in new window

0
 

Author Comment

by:JSSenior
ID: 35139218
capricorn1,

Thanks for this, it seems to work but not always, any ideas why this may be?
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
LVL 75
ID: 35139690

This works ... I've tested it:

http://www.peterssoftware.com/isd.htm

As does this (related):

http://www.peterssoftware.com/fsd.htm

Both are free ...

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

mx
0
 

Author Comment

by:JSSenior
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
0
 
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?

mx
0
 

Author Comment

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

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

789 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