Open a mdb file with Viso 2002 Pro URGENT

J

jmc

Hi,

I want to add a rigth click mouse option to some shapes
that open a mbd Access database file. I don´t know What
type of instructions I have to use. Please help me.

Thanks

jmc
 
J

jmc

Thanks al,

But what I want is to open a file like xpto.mdb and not to
access to the database.
Meanwild, I made some experiences with a fragment of code
that I found in the Internet for opening a mdb file:

Sub OpenDB()
Dim path As String
path = "C:\Net\Project_Net\Net.mdb"
Set AppObject = CreateObject(path)
AppObject.Visible = True
AppObject.OpenCurrentDatabase Link
End Sub

and works.

JMC
 

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