J
Jan Kr
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.Visible = True
appaccess.OpenCurrentDatabase strdb
appaccess.DoCmd.OpenForm "frmsysteminformation"
Set appaccess = Nothing
End Sub
It works Ok, and dispalys the form. My problem is, I do not want to display
a form, only the database window. If I leave out the line
appaccess.DoCmd.OpenForm "frmsysteminformation"
or ad
appaccess.DoCmd.Close
the database opens, but closes dwon immediately. Is there any way to start
Access, open the database, and display the database window?
Jan
Sub OpenDatabase()
strdb = "c:\demo.mdb"
Set appaccess = CreateObject("Access.Application")
appaccess.Visible = True
appaccess.OpenCurrentDatabase strdb
appaccess.DoCmd.OpenForm "frmsysteminformation"
Set appaccess = Nothing
End Sub
It works Ok, and dispalys the form. My problem is, I do not want to display
a form, only the database window. If I leave out the line
appaccess.DoCmd.OpenForm "frmsysteminformation"
or ad
appaccess.DoCmd.Close
the database opens, but closes dwon immediately. Is there any way to start
Access, open the database, and display the database window?
Jan