Connecting Tech Pros Worldwide Forums | Help | Site Map

Running code when access shut down with cross

Dixie
Guest
 
Posts: n/a
#1: Jun 15 '06
My application runs some temporary file clean up code as an onClick event
when users click the exit button. My problem is that some users don't exit
properly and simply click the cross on the top right corner of the window it
is running in.

Can I run the code somehow when that happens? If so, how?

TIA
dixie



Bob Quintal
Guest
 
Posts: n/a
#2: Jun 15 '06

re: Running code when access shut down with cross


"Dixie" <dixie@dogmail.com> wrote in
news:1293k709l79jc6f@corp.supernews.com:
[color=blue]
> My application runs some temporary file clean up code as an
> onClick event when users click the exit button. My problem is
> that some users don't exit properly and simply click the cross
> on the top right corner of the window it is running in.
>
> Can I run the code somehow when that happens? If so, how?
>
> TIA
> dixie
>[/color]
move the code from the On Click event of the button to the on Close
event of the form containing that button.




--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Dixie
Guest
 
Posts: n/a
#3: Jun 16 '06

re: Running code when access shut down with cross


Does this mean that Access automatically closes forms before it exits?

It is quite possible that the particular form would have its visible
attribute set at false, does that matter?

dixie

"Bob Quintal" <rquintal@sPAmpatico.ca> wrote in message
news:Xns97E3BB297AEC6BQuintal@66.150.105.47...[color=blue]
> "Dixie" <dixie@dogmail.com> wrote in
> news:1293k709l79jc6f@corp.supernews.com:
>[color=green]
>> My application runs some temporary file clean up code as an
>> onClick event when users click the exit button. My problem is
>> that some users don't exit properly and simply click the cross
>> on the top right corner of the window it is running in.
>>
>> Can I run the code somehow when that happens? If so, how?
>>
>> TIA
>> dixie
>>[/color]
> move the code from the On Click event of the button to the on Close
> event of the form containing that button.
>
>
>
>
> --
> Bob Quintal
>
> PA is y I've altered my email address.
>
> --
> Posted via a free Usenet account from http://www.teranews.com
>[/color]


w_a_n_n_a_l_l_ -@-_s_b_c_g_l_o_b_a_l._n_e_t
Guest
 
Posts: n/a
#4: Jun 16 '06

re: Running code when access shut down with cross


Access closes all forms before it closes, visible or not.
Dixie
Guest
 
Posts: n/a
#5: Jun 16 '06

re: Running code when access shut down with cross


Great, then that's perfect, as this form is always open, but often
invisible. Problem solved. Thankyou both.

dixie

<w_a_n_n_a_l_l_ -@-_s_b_c_g_l_o_b_a_l._n_e_t> wrote in message
news:kcokg.44943$fb2.14833@newssvr27.news.prodigy. net...[color=blue]
> Access closes all forms before it closes, visible or not.[/color]


Bob Quintal
Guest
 
Posts: n/a
#6: Jun 16 '06

re: Running code when access shut down with cross


"Dixie" <dixie@dogmail.com> wrote in
news:12940rfc6uqq017@corp.supernews.com:
[color=blue]
> Does this mean that Access automatically closes forms before
> it exits?
>[/color]
Yes!
[color=blue]
> It is quite possible that the particular form would have its
> visible attribute set at false, does that matter?[/color]

Not in the least. I often use a "Welcome" form as a splash
screen, and hide it after 5 seconds. It contains clean-up code
as well as the set-up code.
[color=blue]
>
> dixie
>
> "Bob Quintal" <rquintal@sPAmpatico.ca> wrote in message
> news:Xns97E3BB297AEC6BQuintal@66.150.105.47...[color=green]
>> "Dixie" <dixie@dogmail.com> wrote in
>> news:1293k709l79jc6f@corp.supernews.com:
>>[color=darkred]
>>> My application runs some temporary file clean up code as an
>>> onClick event when users click the exit button. My problem
>>> is that some users don't exit properly and simply click the
>>> cross on the top right corner of the window it is running
>>> in.
>>>
>>> Can I run the code somehow when that happens? If so, how?
>>>
>>> TIA
>>> dixie
>>>[/color]
>> move the code from the On Click event of the button to the on
>> Close event of the form containing that button.
>>
>>
>>
>>
>> --
>> Bob Quintal
>>
>> PA is y I've altered my email address.
>>
>> --
>> Posted via a free Usenet account from http://www.teranews.com
>>[/color]
>
>
>[/color]



--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Closed Thread