I need a function in database"A" that opens a database"B" on click

J

J.Alladien

Dear all,

I need a function in database"A" that opens a database"B" (which is in a
differant location ) when runned! The function must be in database"A"!
Is this possible ?

Thanks in advance!
 
S

Stockwell43

Hi,

Could you place a button on your form in database "A" and hyperlink it to
database "B"? Someone else may know some code but for me, this is how I would
have done it.

Hope this helps!!
 
M

microb0x

Here is one method for doing this:

Dim objAccess As Access.Application
Set objAccess = New Access.Application
objAccess.OpenCurrentDatabase [provide path]
objAccess.visible = True
 
F

fredg

Dear all,

I need a function in database"A" that opens a database"B" (which is in a
differant location ) when runned! The function must be in database"A"!
Is this possible ?

Thanks in advance!

A Function? Functions return values. there is no value being returned
here.
A Procedure? sure.
Code a click event in database A:

Application.FollwHyperlink "PathToOtherDatabase\DatabaseB.mdb"
 
Top