Solved

Database users kick-off

Posted on 2013-05-13
4
361 Views
Last Modified: 2013-06-11
Gd Day,
I need to find a way to kick-off all users from the database, when needed. I have tried a number of ways proposed on the web. Most of them are based on the timer in the FE checking the status of the table field in the BE. Something does not work or my hands are seriously deformed (together with the brains).
Most of the changes are to be made in the front end (design mode). BE is rarely modified (but also needed for compact and back-up).
Database itself is deployed on the server and there is only one FE file also on the server. Mult. user accessing same FE from the work stations or remotely from world wide (citrix....(access 2010)
Understand that the issue is pretty often the case.

Thanks in advance,
0
Comment
Question by:hotelguest
  • 2
4 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 39161173
" Most of them are based on the timer in the FE checking the status of the table field in the BE."

That is the standard approach. It usually involves displaying a messagebox warning the user that the app will close in X minutes.  There is nothing remarkable about the process, so it's difficult to advise where you might be going wrong.
0
 
LVL 57
ID: 39161239
<<I need to find a way to kick-off all users from the database, when needed.>>

  There is a passive shutdown feature in JET.  However this is only passive; you set a flag and once set, no one else can connect to the database.  But existing users are not forced out.

 As you've have been told, the best approach by far is to build something into the front end application.   Most take the approach of a hidden form opened at startup which has an timer event running, which checks for some type of flag.

 If it finds the flag, it messages the user, prevents them from opening any new forms or reports, possibly boots them out, etc.

  One thing you don't want to do however is simply sever a users connection to the db (which can be done) as it can lead to corruption of the DB.

Jim.
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 500 total points
ID: 39162019
I built an entire forced shutdown module using this as a starting point - and it's free.

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

mx
0
 
LVL 75
ID: 39162029
I can any or all of some 26 dbs (front ends) connected to their respective backends.. At a  minimum, this is done each night prior to backup and compact & repair.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now