PDA

Click to See Complete Forum and Search --> : Access Project Problem


re_anu
Dec 16th, 2003, 01:44 PM
Hi!

I have an access project open, and if the PENDING command button is clicked, it needs to close the current access project and open another(which has its own set of forms and tables). Does anybody have an idea how to do this.

lintz
Dec 16th, 2003, 04:14 PM
To close the current project use END then use SHELL to open the new project.

re_anu
Dec 17th, 2003, 10:04 AM
Does access 2000 have END and SHELL commands. I never knew that..Could you give me an example as how to do that

re_anu
Dec 17th, 2003, 12:55 PM
Does access 2000 have END and SHELL commands. I never knew that..Could you give me an example as how to do that

lintz
Dec 18th, 2003, 02:40 AM
You'll need to open the second app before the END command otherwise the first app will be closed and the SHELL command will not be run.

Private Sub Command1_Click()
Shell "C:\SecondApp.exe"
End
End Sub