Solved

access 2007

Posted on 2012-03-23
6
273 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

696 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