Connecting Tech Pros Worldwide Help | Site Map

Running code when access shut down with cross

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

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, 02:05 AM
Dixie
Guest
 
Posts: n/a

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, 02: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

re: Running code when access shut down with cross


Access closes all forms before it closes, visible or not.
  #5  
Old June 16th, 2006, 03:35 AM
Dixie
Guest
 
Posts: n/a

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, 10:45 PM
Bob Quintal
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Importance of Terminology's Quality xahlee@gmail.com answers 97 September 2nd, 2008 11:25 AM
Close ODBC Connection / DSN vs DSN-less Connection / Access 2k2 Front-End Greg Strong answers 8 July 10th, 2006 06:25 AM
Session State does not Work with Multithreading and SQL Server - Bug??? Ilia answers 6 November 17th, 2005 11:06 PM
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit answers 0 November 13th, 2005 03:15 AM