Solved

Database users kick-off

Posted on 2013-05-13
4
360 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
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 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…

758 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

18 Experts available now in Live!

Get 1:1 Help Now