On Close Message\Cancel Option

  • Follow


I am using a form and have a message on the on the close event.

When the press the close button, a message pops up and asks, did you remember
to do....?  The problem is that if they want to cancel the close command they
can't; the form just closes.

What I want to happen is if they did not do it I want them to beable to
choose cancel to the close event and remain in the form to do what they
forgot to do.  What is the best way for this to be done.

-- 
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-forms/200702/1

0
Reply AccessQuestions 2/28/2007 3:45:46 PM

Unfortunately, by the time the Close event fires, it's too late to cancel 
it. You might try using the form's Unload event instead; it has a Cancel 
option.

Carl Rapson

"AccessQuestions via AccessMonster.com" <u30633@uwe> wrote in message 
news:6e7c9b69d7871@uwe...
>I am using a form and have a message on the on the close event.
>
> When the press the close button, a message pops up and asks, did you 
> remember
> to do....?  The problem is that if they want to cancel the close command 
> they
> can't; the form just closes.
>
> What I want to happen is if they did not do it I want them to beable to
> choose cancel to the close event and remain in the form to do what they
> forgot to do.  What is the best way for this to be done.
>
> -- 
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/Forums.aspx/access-forms/200702/1
> 


0
Reply Carl 2/28/2007 4:09:46 PM


1 Replies
329 Views

(page loaded in 0.018 seconds)

Similiar Articles:
















7/24/2012 6:18:03 PM


Reply: