Wrox Programmer Forums
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 25th, 2005, 01:40 AM
Posts: n/a
Default Shut down Access database

Does anyone know if there is a way for a database to automatically shut itself down after a period on inactivity
Old August 25th, 2005, 10:43 AM
Friend of Wrox
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts

You would want to use this code. You will need to find a method to determine a level of activity.
I have some ideas if you want to explore this. I know I have seen this used somewhere before. I am sure the other posters will have an elegant method.

Application.Quit, acQuitSaveAll


Old August 29th, 2005, 08:11 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG

Wow, in Access that could be complex depending on what you tie it to. In conjunction with the "On Timer" event and a timer interval, you could monitor the "on dirty" event for the record; however, if you use unbound forms, that may not mean anything. So then you'd have to tie it into a "key press" event and/or mouse movement event. The question is, how much resource overhead is this going to cost you when you start doing that?

Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
Old September 1st, 2005, 09:48 AM
Posts: n/a

Sorry for delay - Thank you both for the suggestions I will have to take a long look at this

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access database database format itHighway Access 0 February 24th, 2008 06:34 PM
How to shut down Computer using ASP 3.0 shahhussain Classic ASP Basics 4 August 24th, 2006 03:01 PM
shut down anchal C# 3 July 10th, 2006 11:48 PM
Remote access to an Access Project Database bright_mulenga Access 0 February 9th, 2006 10:51 AM
Access issues with ASP and a MS Access Database rj_conceptsnrec.com Classic ASP Databases 2 May 19th, 2005 12:44 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.