S
Stewart Berman
Access 2007 RunTime
The application consists of two database. The first one is launch using RunTime. When the user
clicks on the close button I would like to transfer control to the second database.
I tried:
Application.OpenCurrentDatabase <Full path/name of second database>, True, <Password of
Second database>
However that throws a you already have the database open error. To make sure something in the first
database did not actually have the second one open I built a database that consisted of a single
form with the above in its load event and got the same error. The error occurs using the full
version of Access 2007 so it is not a RunTime issue. The second database is local on my development
machine and not in use by anything when the error is thrown.
Is there anyway to transfer control from one database to another without instantiating another
instance of Access?
Is there anyway to stack application level commands to accomplish the above? For example:
CloseCurrentDatabase
OpenCurrenDatabase <Full path/name of second database>, True, <Password of
Second database>
The application consists of two database. The first one is launch using RunTime. When the user
clicks on the close button I would like to transfer control to the second database.
I tried:
Application.OpenCurrentDatabase <Full path/name of second database>, True, <Password of
Second database>
However that throws a you already have the database open error. To make sure something in the first
database did not actually have the second one open I built a database that consisted of a single
form with the above in its load event and got the same error. The error occurs using the full
version of Access 2007 so it is not a RunTime issue. The second database is local on my development
machine and not in use by anything when the error is thrown.
Is there anyway to transfer control from one database to another without instantiating another
instance of Access?
Is there anyway to stack application level commands to accomplish the above? For example:
CloseCurrentDatabase
OpenCurrenDatabase <Full path/name of second database>, True, <Password of
Second database>