PC Review


Reply
Thread Tools Rate Thread

closing Access if user is inactive for a period of time

 
 
Paul Ponzelli
Guest
Posts: n/a
 
      5th Mar 2005
I'm running MS Access 2002 in a multiuser environment, and I would like to
have some VBA code that shut down a front end application if the user has
not done anything with the data or interface for a given period of time. Is
there a way to do this? I'm familiar with VBA's TimerInterval property and
Timer function, and I'm aware of the Quit method of the Application object.
Two things I don't know are:

1. how do you monitor whether the user is typing keystrokes or moving the
mouse in any way, anywhere in the application, and
2. where to put the code that does this.

The reason this is of interest to me is that I'm using the OpenRecordset
method to maintain a persistent connection with the back end to improve
performance, and sometimes a user will open a connection and go to lunch or
start working on something else before closing the connection. I would like
a way to overcome the problem of having more connections open at any time
than necessary. (Am I right in thinking that it's a good idea to keep as
few connections open as possible? Does it make any difference, if some of
them aren't doing anything with it?)

So I'm trying to eliminate situations where a user opens up a connection to
the back end, and prolongs the connection longer than necessary.

Thanks in advance,

Paul


 
Reply With Quote
 
 
 
 
Steve Schapel
Guest
Posts: n/a
 
      6th Mar 2005
Paul

Maybe this will help... http://support.microsoft.com/?id=128814

--
Steve Schapel, Microsoft Access MVP


Paul Ponzelli wrote:
> I'm running MS Access 2002 in a multiuser environment, and I would like to
> have some VBA code that shut down a front end application if the user has
> not done anything with the data or interface for a given period of time. Is
> there a way to do this? I'm familiar with VBA's TimerInterval property and
> Timer function, and I'm aware of the Quit method of the Application object.
> Two things I don't know are:
>
> 1. how do you monitor whether the user is typing keystrokes or moving the
> mouse in any way, anywhere in the application, and
> 2. where to put the code that does this.
>
> The reason this is of interest to me is that I'm using the OpenRecordset
> method to maintain a persistent connection with the back end to improve
> performance, and sometimes a user will open a connection and go to lunch or
> start working on something else before closing the connection. I would like
> a way to overcome the problem of having more connections open at any time
> than necessary. (Am I right in thinking that it's a good idea to keep as
> few connections open as possible? Does it make any difference, if some of
> them aren't doing anything with it?)
>
> So I'm trying to eliminate situations where a user opens up a connection to
> the back end, and prolongs the connection longer than necessary.
>
> Thanks in advance,
>
> Paul
>
>

 
Reply With Quote
 
Paul Ponzelli
Guest
Posts: n/a
 
      6th Mar 2005
> Maybe this will help... http://support.microsoft.com/?id=128814
> Steve Schapel, Microsoft Access MVP


That's exactly what I was looking for.

Thanks, Steve.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
user definition for a specified period of time sybmathics Microsoft Access 0 21st Feb 2006 06:46 AM
User accounts have internet access for short time period (~20-30 m =?Utf-8?B?RG91Zw==?= Windows XP Security 0 20th Nov 2005 03:11 PM
closing Access if user is inactive for a period of time Paul Ponzelli Microsoft Access Form Coding 2 6th Mar 2005 12:22 AM
closing Access if user is inactive for a period of time Paul Ponzelli Microsoft Access 2 6th Mar 2005 12:22 AM
How to change time period that XP locks after user session is inactive Steve Stewart Windows XP Security 1 4th Mar 2004 02:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:39 PM.