Hi,
I would like to open an existing access db and the code seems to work with no errors, but access opens and immediately closes. How do I keep it open. Running Office 2013
I have seen people with the same issue, but have yet to find a remedy.
Thanks,
Jim
I would like to open an existing access db and the code seems to work with no errors, but access opens and immediately closes. How do I keep it open. Running Office 2013
I have seen people with the same issue, but have yet to find a remedy.
Code:
Private Sub OpenDB_Click()
Dim db As New Access.Application
Set db = CreateObject("Access.Application")
db.Application.Visible = True
db.OpenCurrentDatabase "C:\Users\jsmith\Desktop\Purchase Order DB.accdb"
End Sub
Thanks,
Jim