Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Shared Library    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Is a Local Copy Necessary
Rocky Williams 
    
12 months ago
Howdy.  I have the backend of the database on a shared network directory that all the users have mapped.  For the front end I have a bat file everyone uses.  It downloads a copy of the front end to their computer, and then runs that copy.  I've seen in multiple places that having just a shortcut and all the users using the front end from the server can cause corruption, so that's why I set the bat file up.

My question is, do I need to set up this shared library as a local file as well, and have it referenced as such, like I do the front end?  Or can it just stay on the server and be referenced from there, like the back end is?

Thank you for this video an all your other help.
Sami Shamma  @Reply  
             
12 months ago
Hi Rocky.

I'm missing something here. What "shared library" are you talking about? It seems like every user has his own copy of the front-end, and that is correct. And they all map to your network back-end, and that is correct.

Richard Rost  @Reply  
          
12 months ago
That's a great question, and you're absolutely right to be cautious about Access database corruption. The short answer is yes, you should copy the shared library ACCDB file to each user's local machine, just like you do with the front-end.

Referencing the library file directly over the network can increase the risk of file locking, performance issues, and even corruption, especially if multiple users are calling functions or running code at the same time. Access loads referenced libraries into memory just like it does the front-end, so keeping it local ensures better speed and stability.

It's also a good idea to include the shared library in your batch file or deployment process so it's copied to a known local folder like C:\MyApp\SharedLib.accdb. This way, everyone has the same version in the same location, which avoids broken references and potential locking issues. If your shared library contains only code like functions and class modules, you might also consider converting it to an ACCDE file before distribution to prevent edits and slightly improve performance.

Again, excellent question. I'll be sure to include it in this week's QQ.
Richard Rost  @Reply  
          
12 months ago
Sami he's talking about the topic of this video (above). I show how to create a shared library ACCDB file that has all of your "common code" that you use with multiple databases. Like if you have a FtoC conversion function. DLookupPlus. That kind of stuff.
Rocky Williams OP  @Reply  
    
12 months ago
Thank you very much Richard!  I thought that would probably be the case, but figured I'd make sure in case there was a bit of extra work I could save myself.  But even having to make sure the library gets copied over is worth that bit of effort if it means I won't have to update the same bit of code across multiple databases.
Sami Shamma  @Reply  
             
12 months ago
Richard, I often forgot to look at the main topic of the thread and make myself look silly.
Richard Rost  @Reply  
          
12 months ago
Rocky yeah, I'd say if it's a function that is almost never used, maybe once in a while you might be okay leaving it on just the server, but I wouldn't recommend it because if there's other code in there that is used, that whole codebase has to be pulled across the network.

Sami oh I'm guilty of this too. I've sometimes answered questions thinking it was about Access and didn't realize it was posted in the ASP forum or even the Excel forum.
Dave Clark  @Reply  
           
12 months ago
Gentlemen, Great Topic ! For my own understanding you have 3 databases Front End, Back End,  Shared Library?
The Front End and the shared Library get copied to the Local machine and the back end stays on the server.
The Shared Library Database contains code and Functions so the Front End and the Back End don't get bogged down?

Thank You in Advance!!

Dave
Richard Rost  @Reply  
          
12 months ago
Yeah, watch the Shared Library video (see the title way at the top?) It explains why they're handy. This way you don't have to keep copying the same functions (or update them) to multiple database.
Rocky Williams OP  @Reply  
    
12 months ago
I don't know if I should post a new topic asking for help or not.  I'm working on the shared library and it's not working.  The issue (I think) is that there's a class module in the library.  It's the error handling code from the Northwind 2.2 database.  I use it in every one of my databases, and I've started doing some light customization, so it's a prime candidate for the library.

When I open the database, it says Compile Error: Variable not defined, and clsErrorHandler in the first form is highlighted.  

I found and followed the instructions here, and either they won't work for a library like this, or I did something wrong (https://nolongerset.com/creating-class-instances/)

Any advice?  Or a more appropriate place to post this question?
Rocky Williams OP  @Reply  
    
12 months ago
I just found this site, https://learn.microsoft.com/en-us/openspecs/microsoft_general_purpose_programming_languages/ms-vbal/a09fd48e-abed-4da8-8c4c-a110bf4ef6b6 , and I made the class module "Public Creatable".  It SEEMS to have worked, but I'm going to do a bunch more testing just to be sure.  If anyone can give me a roaring "STOP" if what I'm doing is a dead end destined to destroy my soul, I'd appreciate it! :)
Rick User Rost  @Reply  
    
12 months ago
If it works, it works.

Only the Necronomicon can destroy your soul. :)
Richard Rost  @Reply  
          
12 months ago
Looks like I replied earlier using my wrong account. Oops. I know nothing about this Necronomicon.

Klaatu... Verata...... Necktie..... Nickel........?

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Shared Library.
 

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/31/2026 12:23:57 PM. PLT: 1s