Hey guys,
I'm trying to start an existing Access db using vba in Excel. The code I'm running will start the db, but the db immediately closes. Here is my code
I can't figure out what is wrong.Code:Sub Example1() 'Access object Dim appAccess As Object 'create new access object Set appAccess = CreateObject("Access.Application") 'open the accesS project Call appAccess.OpenCurrentDatabase( _ "C:\user\AR DAILY REPORT.ACCDB") appAccess.Visible = True End Sub
Thanks,