I've searched and read the older forums. Most what I found pertain to older versions of Access.
I am trying to open one access file from another using VBA
I currently have the following code:
Function OpenWindingDB()
Dim appAcc As Access.Application
Set appAcc = New Access.Application
appAcc.Visible = True
appAcc.OpenCurrentDatabase ("\\MyNetworkFile\name.accdb")
appAcc.UserControl = True
appAcc.RunCommand acCmdAppMaximize
appAcc = Nothing
End Function
This opens a new access window but will not open the file.
I get a runtime error of database missing or it is not an ADP file.
Thanks for any help you can provide.
I am trying to open one access file from another using VBA
I currently have the following code:
Function OpenWindingDB()
Dim appAcc As Access.Application
Set appAcc = New Access.Application
appAcc.Visible = True
appAcc.OpenCurrentDatabase ("\\MyNetworkFile\name.accdb")
appAcc.UserControl = True
appAcc.RunCommand acCmdAppMaximize
appAcc = Nothing
End Function
This opens a new access window but will not open the file.
I get a runtime error of database missing or it is not an ADP file.
Thanks for any help you can provide.