My problem is that I want my button's onclick action to open a new Acces Project in the current Access Window.
Actually, the code is working but I think it may creates some memory leaking problems.
The real problem with OpenAccessProject is that I actually have a project loaded. In the MS documentation, they say that I must use CloseCurrentDatabase() befor using OpenAccessPorject() but if I do that, the latter won't be run since the project is closed!
Anyone has an idea?
Actually, the code is working but I think it may creates some memory leaking problems.
Code:
Call Shell("C:\Program Files\Microsoft Office\Office\MSACCESS.EXE C:\myDB.ADP", vbMaximizedFocus)
DoCmd.Quit
The real problem with OpenAccessProject is that I actually have a project loaded. In the MS documentation, they say that I must use CloseCurrentDatabase() befor using OpenAccessPorject() but if I do that, the latter won't be run since the project is closed!
Anyone has an idea?