Connecting Tech Pros Worldwide Help | Site Map

Running code when access shut down with cross

 
LinkBack Thread Tools Search this Thread
  #1  
Old June 15th, 2006, 09:25 PM
Dixie
Guest
 
Posts: n/a
Default Running code when access shut down with cross

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



  #2  
Old June 15th, 2006, 10:25 PM
Bob Quintal
Guest
 
Posts: n/a
Default 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

  #3  
Old June 16th, 2006, 01:05 AM
Dixie
Guest
 
Posts: n/a
Default 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]


  #4  
Old June 16th, 2006, 01:55 AM
w_a_n_n_a_l_l_ -@-_s_b_c_g_l_o_b_a_l._n_e_t
Guest
 
Posts: n/a
Default Re: Running code when access shut down with cross

Access closes all forms before it closes, visible or not.
  #5  
Old June 16th, 2006, 02:35 AM
Dixie
Guest
 
Posts: n/a
Default 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]


  #6  
Old June 16th, 2006, 09:45 PM
Bob Quintal
Guest
 
Posts: n/a
Default 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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.