Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open Forms in different databases with same form

Status
Not open for further replies.

grgimpy

Programmer
Nov 1, 2006
124
US
I recently split my database into three separate databases for various reasons. I'm trying to create one "Control Panel" form with command buttons that open each form from the different databases. I know about the DoCmd.OpenForm coding but from what I've read it only opens forms in the current database. What can I do to accomplish this?

Any help with this would be greatly appreciated.
 
Code:
Dim AppAccess1 As Access.Application
Set AppAccess1 = CreateObject("Access.Application")
AppAccess1.OpenAccessProject ("\\XXX\xxx\xXXX\XXXX\XXXX.ade")
Dim AppAccess2 As Access.Application
Set AppAccess2 = CreateObject("Access.Application")
AppAccess2.OpenAccessProject ("\\XXX\xxx\xXXX\XXXX\XXXX.ade")
AppAccessx.docmd.openform "formname"
not tested
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top