PC Review


Reply
Thread Tools Rate Thread

Close a form when you click outside of the form

 
 
Alex St-Pierre
Guest
Posts: n/a
 
      19th Jun 2008
Hi !
I'm wondering if there's a way to close a form automaticaly when you click
outside of the form.
Thank you!
Alex
--
Alex St-Pierre
 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      19th Jun 2008
If you are showing the form Modal, which is default, then clicking outside
the form does nothing because the form retains forcus and everthing else is
disabled. If you show the form Modeless, you would have to write the code to
react to a range object or another control object with and event that would
react to the click event.
It seems like a lot of trouble when you can just as easily write code for
the click event of the form itself to close it, unless you are trying to be
punitive to a user who is fooling around with your form.

"Alex St-Pierre" wrote:

> Hi !
> I'm wondering if there's a way to close a form automaticaly when you click
> outside of the form.
> Thank you!
> Alex
> --
> Alex St-Pierre

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If/Then in form On Close or Command On Click nybaseball22@gmail.com Microsoft Access Form Coding 4 2nd Dec 2007 07:57 AM
Close form on button click =?Utf-8?B?QktN?= Microsoft Access Getting Started 2 28th Feb 2007 07:49 PM
Close button on a form will not close form - error 2585 - action cannot be carried out while processing a form Angus Comber Microsoft Access 2 19th Jul 2006 12:21 PM
Did not close the form after click on an action button. Richard Microsoft Outlook Form Programming 3 1st Dec 2003 12:57 PM
close form on click event carly Microsoft Access VBA Modules 1 15th Oct 2003 08:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:31 PM.