We have just "upgraded" to office 2007 form 2003. I have an access datbase that opens another database. Before the upgrade I would call and open the second database fine, now the second database just opens and closes. The code im using is as follows:
anybody have an answer to my problem.
thanks.
Code:
Dim strDB As String
' initialize string to database path
strDB = "filepath and name"
' create new instance of microsoft access
Set appAccess = CreateObject("Access.Application")
'open database in access window
With appAccess
.OpenCurrentDatabase strDB
.Visible = True
.RunCommand acCmdAppMaximize
End With
thanks.
Comment