A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Close Access from a form



 
 
Thread Tools Display Modes
  #1  
Old May 8th, 2009, 05:15 PM posted to microsoft.public.access
Joe M.
external usenet poster
 
Posts: 168
Default Close Access from a form

I have a menu form with a "close form" cmd button. I would like Access to
close when the button is pushed.Is there a way to do this?

Thanks,
Joe M.
  #2  
Old May 8th, 2009, 05:21 PM posted to microsoft.public.access
George
external usenet poster
 
Posts: 883
Default Close Access from a form

Dear Joe,

You can set the On Click event of that button to Docmd.Quit

GeorgeCY

Ο χρήστης "Joe M." *γγραψε:

I have a menu form with a "close form" cmd button. I would like Access to
close when the button is pushed.Is there a way to do this?

Thanks,
Joe M.

  #3  
Old May 8th, 2009, 05:21 PM posted to microsoft.public.access
[email protected]
external usenet poster
 
Posts: 129
Default Close Access from a form

In the button's Click event procedure put:

Application.Quit

Ken Sheridan
Stafford, England

On May 8, 5:15 pm, Joe M. wrote:
I have a menu form with a "close form" cmd button. I would like Access to
close when the button is pushed.Is there a way to do this?

Thanks,
Joe M.


  #4  
Old May 8th, 2009, 05:23 PM posted to microsoft.public.access
Kc-Mass
external usenet poster
 
Posts: 362
Default Close Access from a form

use the OnClose event of the form

action would be "Quit" after you clean up any open database and recordsets



"Joe M." wrote in message
...
I have a menu form with a "close form" cmd button. I would like Access to
close when the button is pushed.Is there a way to do this?

Thanks,
Joe M.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:42 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 OfficeFrustration.
The comments are property of their posters.