Hello!!!
With Access 2007, the following code was working fine:
Now, using Access 2013 it refuses .usercontrol = false (non valid reference). When commented, the next line crashes (DB already opened).
It seems that Access does not create a new application in app but refers to the ACTUAL db. Any solution???
With Access 2007, the following code was working fine:
Code:
Dim app As Access.Application
Dim xDB As Database
Dim strPath as string
...
strPath = "....\TestDB.accdb"
Set app = Access.Application
With app
.UserControl = False
.OpenCurrentDatabase strPath ' , , "ms1595888"
Set xDB = .CurrentDb
End With
It seems that Access does not create a new application in app but refers to the ACTUAL db. Any solution???