473,386 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How do I detect that there has been no activity on a form

How do I detect that there has been no activity on a form in an Access 97
Database

Paul

thanks


Nov 13 '05 #1
2 1877
On Tue, 1 Jun 2004 23:13:06 +0100, dude wrote:
How do I detect that there has been no activity on a form in an Access 97
Database

Paul

thanks


How long a period of time is no activity?
5 minutes?

Add an unbound control to the form. name it [StartTime].
Set it's Visible property to No (or Yes if you wish to show it).

Code the Form's Load event:
[StartTime] = Time

Code the Form's KeyPress event:
[StartTime] = Time

Set the Form's Timer Interval to 1000

Code the Form's Timer event:
If DateDiff("n", [StartTime], Time) = 5 Then
' Now what? Close the Form?
DoCmd.Close acForm, Me.Name
End If
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #2
thank you
"fredg" <fg******@example.invalid> wrote in message
news:15*****************************@40tude.net...
On Tue, 1 Jun 2004 23:13:06 +0100, dude wrote:
How do I detect that there has been no activity on a form in an Access 97 Database

Paul

thanks


How long a period of time is no activity?
5 minutes?

Add an unbound control to the form. name it [StartTime].
Set it's Visible property to No (or Yes if you wish to show it).

Code the Form's Load event:
[StartTime] = Time

Code the Form's KeyPress event:
[StartTime] = Time

Set the Form's Timer Interval to 1000

Code the Form's Timer event:
If DateDiff("n", [StartTime], Time) = 5 Then
' Now what? Close the Form?
DoCmd.Close acForm, Me.Name
End If
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

23
by: David McCulloch | last post by:
QUESTION-1: How can I detect if Norton Internet Security is blocking pop-ups? QUESTION-2a: How could I know if a particular JavaScript function has been declared? QUESTION-2b: How could I...
4
by: vulcaned | last post by:
Hi All, Hopefully I explain this well........ In Access97 I have a form which has a tab control on it, each tab has a sub-form which is bound to its appropriate table(I'll call them 'Detail'...
1
by: jdph40 | last post by:
I am using Access 2002. I downloaded the forms sample database FrmSmp97.mdb from Microsoft and used the following code in the timer event of a hidden form in order to close a database if no...
1
by: Terry Olsen | last post by:
I have a chat application. I want it to show the user as "away" if no activity on the computer occurs for a certain amount of time. I have a timer that I set for the correct interval, when it...
6
by: PW | last post by:
I have an ASP which is a form (get), and whenever I run it, even though its just sitting there waiting for input, the progress bar at the bottom of the page starts slowly climbing up. Why is it...
8
by: BJ | last post by:
Problem: How can I code up a client side process to detect if the network is available? Synopsis: I am writing ASP.NET input forms for a Panasonic Tuff book. The users will be walking around...
2
by: Midsomer | last post by:
Hi. I have an Access database with a form containing 4 datasheets and I allow the user to change column widths. On closing the form, a routine is fired that saves each column width to an INI file....
5
by: Ke Tao | last post by:
HI All, Is there anybody have an idea of how to detect internet is reachable ? At present , I'm using ping to detect internet is reachable , but it's maybe a bad idea , some firewall of router...
2
by: RP | last post by:
I want to detect user activity (mouse move, key click). For certain critical areas (Form in my app.), I want to check whether there is any user activity for a certain interval. If not, then I want...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.