Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to What's Next    Comments List
Public Thread ?
Upload Images | @Reply | Bookmark | Link | Email | Next Unseen |
Shared ACCDE Library References
Mohammed Alateyah 
     
32 days ago
Hello Mr. Richard

I have few questions which I will list below. The main reason why I bought this course is to share VBA Only but you brought my attention to things I didn't consider and I can use these are very cool things that can make development much easier and fun reducing the tedious boring repetitive updates that we have to do thank you for sharing that with us

1-Do I Have to distribute the library along with the actual linked databases all the time?
2-what happen if the library on a shard folder?
3-does this share folder/server have to be trusted?
4-Just to confirm is sharing class module safe this way? I am trying to set session identity and user permissions and applying those permissions handled by classes I am still experimenting with those but I wanted to confirm if I can use the same technique you showed for those as well or is there some special consideration for classes?
Richard Rost  @Reply  
           
32 days ago

Thanks, Mohammed! Glad you're finding more uses for the library. That's exactly why I like this approach.

1. Each database that references the library needs access to that library file whenever it runs. The reference doesn't copy the VBA into the calling database. You can distribute a local copy with each application, or have several applications reference one shared copy. You don't have to resend an unchanged library every time you update the front end, but the versions still need to work together.

2. A library on a shared network folder can work, as in the setup in Developer 63 Lesson 1. Everyone needs a valid path and access to the file. The catch is updating it: all applications using that copy need to close before you replace it. A network outage also makes the library unavailable. Local copies avoid that dependency, but then you need a way to distribute library updates.

3. Trust is checked by Access on each user's computer. Simply putting the library on a server doesn't make it trusted. If you're using Trusted Locations, configure the specific library folder appropriately on each client, subject to your organization's policies. Network Trusted Locations are disabled by default and Microsoft discourages broadly enabling them. Don't trust an entire drive or a folder where anyone can drop arbitrary files. Here's Microsoft's guidance.

4. Classes need some extra consideration. A reusable class can live in the library, but exposing it to another VBA project involves its Instancing setting and usually a public function in the library that creates and returns the object. See Microsoft's cross-project class example. Start with a small test class before moving your session code over.

Keep each user's session state in that user's running application, and explicitly initialize and clear it at login/logout. Sharing the library file doesn't create a shared live session object for all users. Also, moving permission checks into a library or compiling it as an ACCDE doesn't by itself secure the underlying data. Users must still be prevented from accessing data they're not authorized to use outside your forms. I'd test the class-sharing mechanism separately before relying on it for security.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in What's Next.
 

Next Unseen

 
 
What's This?

 

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: 11/18/2026 12:01:11 AM. PLT: 1s