Thanks kim,
I've got it working now.
In case anyone else is interested in the code I've posted it below.
Deco
Dim strPath As String
Dim objAccess As Object
strPath = "G:\reinledg\Midnight\697LPC\LPCCashImport.mdb"
Set objAccess = GetObject(strPath)
I writing a VBA procedure in Excel. Part of the function is to open an Access database in order to populate certain tables. I'm having problems opening the databse. Can any of you experts out there give me any help??
Cheers
I'm using VBA within Access. I've got a module in database 2 which runs when the database 2 is opened. When it has finished the database closes down. What I would like to be able to do is to open database 2 from database 1 to run this module, close database 2 and keep database 1 open. I've tried...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.