Re: How to detect that user click on close button (x)

From: manchery (kettungal_at_qatar.net.qa)
Date: 08/10/04


Date: Mon, 9 Aug 2004 21:30:02 -0700

Hi,
Why don't you disable that (X) default close button and
change your forms property Modal = yes and popup = yes. If
you do this then users can close forms with the buttons
(command buttons) you provided in the form.

I hope this will work,,,, Good Luck...

manchery

>-----Original Message-----
>"Tran Hong Quang"
<TranHongQuang@discussions.microsoft.com> wrote in message
>news:D1F34FC4-6082-4122-A512-66A4C7945DEF@microsoft.com...
>> Hi,
>> I don't have another close button on the form.
>>
>> User can execute "DoCmd.Close acForm, formname" from
outside. I means from
>> other form, public function, macro, or click on close
button of the main Ms
>> Access.
>>
>> How to recognize that user explicitly and directly
click on default close
>> button of the form or the form is commanded to close by
other way.
>
>There is no way to do that that I know of.
>
>
>--
>I don't check the Email account attached
>to this message. Send instead to...
>RBrandt at Hunter dot com
>
>
>.
>