Start mdb from mdb

H

Harmannus

Hallo,

How can i start another mdb (like the one below) from within an active mdb?
e.g.
c:\myapp\newapp.mdb

Is it possible to check if the mdb is present and if not skip the start?

Thanx for any tips

Regards,

Harmannus
 
N

Naresh Nichani MVP

Hi:

You could try this code like this --


Dim objAccess as Access.APplication

if VBA.Dir("c:\myapp\newapp.mdb") <> "" then

Set objAccess = new Access.Application
objAccess.Visible = True
objAccess.OpenCurrentDatabase "c:\myapp\newapp.mdb"
else
Msgbox "Cound not fund 'c:\myapp\newapp.mdb'",vbInformation
end if
Regards,

Naresh Nichani
Microsoft Access MVP
 

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