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 
Run a Form from another DB
Sami Shamma 
             
2 years ago
Friends,

I have 2 DBs that share some tables located in a common Backend. The Forms that maintain these tables are located in each of the 2 front ends.

Is there a way to run a Form from one DB located in the other DB so I do not have 2 sets of Forms that are identical?

Thanks
Richard Rost  @Reply  
          
2 years ago
Not that I'm aware of. You'd have to shell out to the other database. You can share Modules, but not forms.

You could make a 3rd "maintenance" front end for this.
Sami Shamma OP  @Reply  
             
2 years ago
Humm, the 3rd DB is worth considering as it will be used only by the system administrators.
Kevin Yip  @Reply  
     
2 years ago
You can add a reference to another database in the VBA Editor -> Tools -> References, then you can call all the public functions in that database (see picture below).  If that database has a public function that opens a form, then you can call that function to open that form.  And that is how you open a form in another database.  The caveat is that the form has to be designed and coded for use by two databases, which is a highly irregular practice.  This may work with unbound forms with few dependencies (e.g. message box form, etc.).  But those kinds of forms are usually simpler in design, so you may as well just copy it to another database.  Complex forms with lots of dependencies and references to tables, queries, etc. can almost always work with just one database, the one the form is created in.  To make it work with another DB, that DB likely has to be identical to the first DB.  So again, you might as well just copy the form over to the second DB.

This kind of "front-end sharing" concept doesn't exist in Access.  It is more in the domain of a client-server environment like ASP and web interface, which serves *everything* to the user, front ends as well as back ends.  In Access, the front end is always at the user's end.
Kevin Yip  @Reply  
     
2 years ago

Richard Rost  @Reply  
          
2 years ago
There you go. Yeah, I usually used to put all of the admin features like that in a separate database. Instead of just making a separate admin menu, I would shell out to a different database. This way, the users didn't even have that code, and half the time they didn't have to be even connected to the admin tables.
Thomas Gonder  @Reply  
       
2 years ago
Oh crap, I've just lost a day app development with all these posts and thinking about complex stuff I've somehow managed to avoid for ten years. All right everyone, back to work!

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/8/2026 7:04:07 AM. PLT: 1s