J
Jan
I try to open an Access database from Excel using the following code:
Sub OpenDatabase()
strdb = "c:\demo.mdb"
Set appAccess = CreateObject("Access.Application")
appAccess.OpenCurrentDatabase strdb
appAccess.DoCmd.OpenForm "frmsysteminformation"
Set appAccess = Nothing
End Sub
This shows the form OK, but not the Access window. When I close the form it
disappears, but leaves theAccess application running in Background.
How can I open a databae in the database window and gain access, not only to
the form, but to the full Access, that is Databasewindow and all?
Jan
Sub OpenDatabase()
strdb = "c:\demo.mdb"
Set appAccess = CreateObject("Access.Application")
appAccess.OpenCurrentDatabase strdb
appAccess.DoCmd.OpenForm "frmsysteminformation"
Set appAccess = Nothing
End Sub
This shows the form OK, but not the Access window. When I close the form it
disappears, but leaves theAccess application running in Background.
How can I open a databae in the database window and gain access, not only to
the form, but to the full Access, that is Databasewindow and all?
Jan