View Single Post
  #2 (permalink)  
Old 10-16-2007, 10:38 PM
TonyES TonyES is offline
Member
 
Join Date: Oct 2007
Posts: 41
iTrader: (0)
TonyES is on a distinguished road
Default

Hi,
You can define the other database as a reference in the first database (Alt-F11 in the first database, go to Tools | References..., click the Browse button, change the "Files of type" dropdown to "Microsoft Office Access Databases", and find the other database). Once you set the other database as a reference, in the first database you have to call a public subroutine that is in the other database (no special syntax - it will look there as well as your current database once the reference is set). That public subroutine will open the form that you want in the other database.

Using Automation, you could do this:

Dim app As New Access.Application
app.OpenCurrentDatabase "OtherDatabase.mdb"
app.DoCmd.OpenForm "frmSomething"
app.Visible = True
Set app = Nothing

Cheers!
Reply With Quote