Open another database from the one you have open

B

blake7

Hi all,
I have a requirement to open another database from within the current one I
have open, I am trying to do this with a button on a form, I have the
following code below but it does not work, the egg timer shows but nothing
happen, can anyone help. Thanks


Private Sub Command60_Click()
Dim accapp As Access.Application

Set accapp = New Access.Application

accapp.OpenCurrentDatabase "c:\my documents\quality issues log.mdb"
accapp.Visible = True
End Sub
 
D

Daniel Pineault

It depends on your needs, but if all you are trying to do is open it and make
it available to the user then use the FollowHyperlink method.

Application.FollowHyperlink "c:\my documents\quality issues log.mdb"
--
Hope this helps,

Daniel Pineault
http://www.cardaconsultants.com/
For Access Tips and Examples: http://www.devhut.net
Please rate this post using the vote buttons if it was helpful.
 

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

Top