Try to set the timer interval to a fraction of the present one (maybe a
tenth). Then place a static variable to keep record of the last connection.
Each time the timer event is fired check if the time elapsed since last
connection is >= to the original interval. This could not solve the problem
of inconsistent firing but could significantly reduce the delay produced by
it.
I hope it helps.
----- Original Message -----
From: "simon" <sgatt99@h...>
To: "professional vb" <pro_vb@p...>
Sent: Friday, February 22, 2002 11:15 AM
Subject: [pro_vb] Timer - inconsistent firing
> Hi,
>
> I have a VB6 app which incorporates a timer on a form. When the timer
> event is fired the app starts a connection to an Access dbase and queries
> a table for a value. If the value is X then the all forms will unload and
> effectively kick the user out of the system.
>
> This seems to work only 90% of the time.
>
> Does anyone know of any limitations to the timer?
> eg if the app is open on a users pc but has not been used for a period of
> time - does this affect the firing.
>
> thanks
> s
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com