Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Developer Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
How to kick users out of BE db
Gary Becker 
     
2 years ago
I built a database where users run a front-end connected to multiple backends. The data is imported into the backends and the backend eventually passes the 2gb limit and needs to be compacted. How do you KICK or disconnect the users from the backend so that you can compact it?? In the past, I had them reboot the server and then immediately run the compact & repair. Is there a better way? Is there a way to tell which users have the files open? They aren't changing data or adding data, they are just viewing it. If the front-ends would be read-only, (if that could be done) would that make a difference?
Adam Schwanz  @Reply  
           
2 years ago
Thomas Gonder  @Reply  
      
2 years ago
Hi Gary, I don't know any "Access way" to kick out the users. If they are already logged out, then you can open the BE as "Exclusive" and do whatever, changes, updates you want or a backup. My limited testing wouldn't allow the users to get to the linked tables, but I can't remember exactly what happened. It was testing in Access 2021 awhile back.

In my Menu form, I have a timer that checks for a BE flag that the system isn't available. The menu can't close if some "jobs" are still open, otherwise it shuts down Access on the FE. The same flag check is done for the Login form and all the other forms, updates and reports (jobs). The jobs will all gracefully shutdown when they see the flag in their timer procedures. When they are done closing, the menu will again do its timer procedure check and shut Access down.

It's very rare that I get a single db to exceed 2gb, especially for business applications. I had 40 client's data on my old db server, along with the applications and logs and I never came close to 1gb. I didn't "purge" data either. And this was with around 50 employees entering data every workday for the clients as well as downloads of our client's customers and their sales data for twenty years. Good design helps keep the db to a reasonable size. Despite that, in Access I do keep logs in their own db, and I may consider putting some universal data (countries, postal codes, addresses, etc.) in their own db too at some point as referential integrity isn't all that important in these rather static tables.
John Campbell  @Reply  
     
2 years ago
I still have the tool "LDBViewer".  This is a utility from 1997 that when used, tells you what users have the database open.  It's old, but still works.  My email is [email protected].  EMail me if you want me to email you a copy of it....
Alex Hedley  @Reply  
           
2 years ago
There's some more discussions on monitoring users in another forum post: Detect multiple users
Gary Becker OP  @Reply  
     
2 years ago
I did find this code online. And it seems to work. Well, it just tells you who is connected. I haven't tried it in a multi-user environment.
Gary Becker OP  @Reply  
     
2 years ago

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/1/2026 10:32:45 PM. PLT: 1s