Greetings...
Not sure what I'm missing or not seeing but the below code works perfectly
Code:
Sub OpenAccess1 ()
Dim AppAccess As Object
Set AppAccess = CreateObject ("Access.Application")
Call AppAccess.OpenCurrentDatabase ("N:\Sales\Internal\Confidential\ProdDept\Reports\Weekly\Sales.accdb")
End Sub
While the code below opens the Db but then as soon as the code hits End Sub - The Db immediately closes - very frustrating
Code:
Sub OpenAccess2 ()
Dim AppAccess As Object
Set AppAccess = CreateObject ("Access.Application")
Call AppAccess.OpenCurrentDatabase ("N:\Production\Internal\ProdDept\Reports\MTD\Prod.accdb")
End Sub
I've tried using AppAccess.Visible = True
I've used both early & late binding methods
Same results
Help?