Solved

access 2007

Posted on 2012-03-23
6
267 Views
Last Modified: 2012-06-22
I have a database that 3 users use.  At 7 p.m I want to log the users out of the database automatically if they do no shut down there machines on there own.  Is that possible.  The users are not required to setup a userid an password to use the database.
0
Comment
Question by:centralmike
[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
6 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 37758270
Use a hidden form that runs a timer event every hour say.

In the timer event procedure check the time and when you get to after 6 oclock then change the timer inetrval to every 10 minutes and once you get to 7oclock issue a message box that the app will close automatically in 10 minutes.  
Then on the next timer event close the app.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37758539
Pete posted the most popular solution.

When you get this going, you might want to consider what to do if the user is in the middle of something when the DB shuts down.

Ex.:
They were in the middle of editing a record when they ran to the bathroom and did not see the alert.  What of the uncommitted edits?

What if they were running a long procedure, and the DB shuts down (Do you have "Roll-Back" Code in place)?

Your next Question here might be to find a way to give the user a "Need More Time? option...
;-)

Jeff
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37758550
Oh, and please do not consider my post for any points, as Pete's post would seem to be a valid solution.
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 6

Expert Comment

by:todd_beedy
ID: 37759165
Peter's post is def the correct one to use...

one word of caution... if you force people to log off and they are in the middle of something, you do risk corrupting your database. Be careful.

Here is an example of what he is talking about.

http://www.databasejournal.com/features/msaccess/article.php/3548586/Auto-Logout-Users-for-DB-Maintenance.htm
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37760918
...todd_beedy
<one word of caution... if you force people to log off and they are in the middle of something, you do risk corrupting your database. Be careful.>
...That is what I mentioned in my post: 37758539

...but the link is a bonus.


In addition to the home grown solutions, FMS inc provides a full featured app as well.

This might be a good fit for Distributed or higher end Production databases.
http://www.fmsinc.com/microsoftaccess/monitor.asp

JeffCoachman
0
 

Author Closing Comment

by:centralmike
ID: 37787053
The procedure worked as expected from your response
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

733 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