Open Access, then database?

J

James T.

Access 2000

I have been able to open Word and Excell using this type
of code, but trying it with access will open the app, but
not the data. With Word it is:

' Open the document.
..Documents.open(path ...)

But I don't know what replaces "documents" in trying to do
it with access.

Option Compare Database

Private Sub Command0_Click()

' start Microsoft Access.
Set accessapp = CreateObject("access.application")

With accessapp

' Make the application visible.
.Visible = True
' Open the document.
.?????????.Open ("j:\etc...\MERGForms.mdb")

End With

End Sub

Anyone know?

Thanks!

James
 
G

Gerald Stanley

Try

With accessapp

' Make the application visible.
.Visible = True
' Open the document.
.OpenCurrentDatabase("j:\etc...\MERGForms.mdb")

End With

Hope This Helps
Gerald Stanley MCSD
 

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