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 Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Exclusive lock on database on network
Anne 
    
13 years ago
Hi Richard - Need your expert advice please.  
Background:
Our database runs on a network.  Each user has a copy of the compiled program on their local hard drive. When the users logs into the network, a batch program checks to see if the user has the most recent version of the compiled ACCESS program.  If not, it downloads it from the network to the C drive.  Pretty cool.  :)   The backend data files are on the network.  
Question:
When I upgrade the program, everyone has to log out.  Recently someone logged back in right in the middle of an upgrade -- which caused difficulties.  Is there a way to exclusively lock out the BACKEND while upgrading and then unlock it when done?  What would you recommend?  Thanks in advance for your help.


Reply from Richard Rost:

Doing this on a database level would be unreliable. What I would do is manage this with simple text files. Make yourself a STATUS.INI file that you can put in the database folder with one line in it:

LOCKED:YES

Now the first thing any front-end database can do before it even loads any forms up is read in this file and check the status. If it's locked, pop up a message or just exit completely.

When you're done with your updates, just say "LOCKED:NO" and save the file.

Or... if you don't want to work with text files, you could make a simple table in your back-end that has a single Locked y/n field. Make the front end check that first. This opens up the problem of potential record locking issues... BUT... if it's only this one table it shouldn't be an issue since the front-ends are only reading a single value and closing.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access 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/17/2026 1:36:02 PM. PLT: 0s