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

  • Thread starter Thread starter J.Alladien
  • Start date Start date
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!
 
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!!
 
Here is one method for doing this:

Dim objAccess As Access.Application
Set objAccess = New Access.Application
objAccess.OpenCurrentDatabase [provide path]
objAccess.visible = True
 
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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top