hellohello1
Technical User
I am using Access 2003 and I'm trying to open a second database from within a database.
I tried this code behind a command button:
Shell ("""" & "c:\Program Files\Microsoft Office\OFFICE11\MSAccess.exe" & """" & " " & """" & sAdhocReport & """")
where sAdhocReport is the full path of my other database.
It works. I'm just looking for two things:
1). Currently, the second database opens, but it doesn't pop up. It stays on the Windows task bar. How can I make the second database to be the focus?
2). I would like the second database to open showing the Reports Window.
Thanks!
I tried this code behind a command button:
Shell ("""" & "c:\Program Files\Microsoft Office\OFFICE11\MSAccess.exe" & """" & " " & """" & sAdhocReport & """")
where sAdhocReport is the full path of my other database.
It works. I'm just looking for two things:
1). Currently, the second database opens, but it doesn't pop up. It stays on the Windows task bar. How can I make the second database to be the focus?
2). I would like the second database to open showing the Reports Window.
Thanks!