Full Version: Close Application
UtterAccess Discussion Forums > Microsoft® Access > Access Q and A
ConorS
Hi

On a form i want to place a button that when clicked, will close the access application.

I know

DoCmd.Close

will close the current form.

Whats the code to close the current application?

Thanx
Larry Larsen
Hi
Try:
DoCmd.Quit

thumbup.gif
JayNoelOlimpo
hi:

or: Application.Quit

HTH.
ConorS
before it quits i want to open a java program i programmed..

it sits at:

C:\Progs\SystemProg.class

how do i do it?
Larry Larsen
Hi

Shell Function Example
This example uses the Shell function to run an application specified by the user. On the MacIntosh, the default drive name is “HD” and portions of the pathname are separated by colons instead of backslashes. Similarly, you would specify Macintosh folders instead of \Windows.

' Specifying 1 as the second argument opens the application in
' normal size and gives it the focus.
Dim RetVal
RetVal = Shell("C:\WINDOWS\CALC.EXE", 1) ' Run Calculator.

HTH's


thumbup.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.