UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Close Application    
 
   
ConorS
post May 25 2005, 03:43 AM
Post #1

UtterAccess Ruler
Posts: 1,265
From: Northern Ireland (Newry)



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
Go to the top of the page
 
+
Larry Larsen
post May 25 2005, 03:47 AM
Post #2

UA Editor + Utterly Certified
Posts: 22,722
From: Melton Mowbray,Leicestershire (U.K)



Hi
Try:
DoCmd.Quit

(IMG:http://www.utteraccess.com/forum/style_emoticons/default/thumbup.gif)
Go to the top of the page
 
+
JayNoelOlimpo
post May 25 2005, 03:53 AM
Post #3

UtterAccess VIP
Posts: 7,990
From: Philippines



hi:

or: Application.Quit

HTH.
Go to the top of the page
 
+
ConorS
post May 25 2005, 04:35 AM
Post #4

UtterAccess Ruler
Posts: 1,265
From: Northern Ireland (Newry)



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

it sits at:

C:\Progs\SystemProg.class

how do i do it?
Go to the top of the page
 
+
Larry Larsen
post May 25 2005, 06:35 AM
Post #5

UA Editor + Utterly Certified
Posts: 22,722
From: Melton Mowbray,Leicestershire (U.K)



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


(IMG:style_emoticons/default/thumbup.gif)
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 25th May 2013 - 02:09 AM