Open another database from existing database

P

Phil Chan

Hi,

I am using 97 Access and would like to create a code to
open another database from the existing database form.

Private Sub TDActualGP_Click()

Dim stAppName As String

stAppName = "C:\Program Files\Microsoft
Office\Office\msaccess.exe" & "/user" & "'PHIL'" & "/pwd"
&_ "'DENNIS'”_"I:\Accnting\TDProposal.mdb"

Call Shell(stAppName, 3)

End Sub

Both database are password protected. I have already
tried almost all combination of “stAppNmae” but it still
did not work. I am wondering if it is possible. If yes,
please help. Am I going to the right track?

Thank you so much for any help.
 

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