Solved

Access 2007 Can I close Access on another user's computer in VBA?

Posted on 2013-10-31
4
509 Views
Last Modified: 2013-10-31
I need to make updates from time to time in Access.   If another user has the company db open, I can't export modules to it.  Can I close the db from my workstation?  If so, how?
0
Comment
Question by:David_W_R
[X]
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
  • 2
  • 2
4 Comments
 
LVL 58

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 39613827
While you can, it's not a great idea.

A better approach is to provide a shutdown feature in the app itself, either passive or forced.

Open a hidden form at startup, and set a timer for say 60 seconds.   Each time it fires, check a flag (a field in a table for example) and if that flag is found, message the user.  You can then either let them finish up (passive) or quit the app (forced).

Also check that flag at startup and if found, don't start the app, just quit.

You can do the flag with something like this:

http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_5328-Resource-locking-in-your-applications.html

Jim.
0
 

Author Closing Comment

by:David_W_R
ID: 39614048
Perfect, thanks for the help, Jim.

Dave
0
 
LVL 58
ID: 39614063
Dave,

 I should have added another piece that you might want to implement as part of this:

How to detect User Idle Time or Inactivity in Access 2000
http://support.microsoft.com/kb/210297

 This show you how to kick out users based on inactivity.  This in conjuction with a lock out flag gives you a good all a round solution.

 I also should have mentioned that the reason you don't want to force a user out of Access externally is that it can cause database corruption.

Jim.
0
 

Author Comment

by:David_W_R
ID: 39614110
The very issues I was addressing in my mind while contemplating the next move.   Thanks very much for the thoughtful follow-up.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

630 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