Toggle Dirty or...

A

Angelsnecropolis

Currently I have a form with multiple textboxes and combo boxes. I have code
so that when the form is dirty a timer starts. After a specified time the
form clears via Me.Undo.

However, I need to figure out a good code so that if the person using the
form starts typing (is dirty and timer starts) but decides to erase what they
typed by simply using backspace, the timer stops preventing the me.undo but
the timer restarts if the person begins typing again.

As an alternately, what would be the best method or code to use so that
every X minutes the form will verify if the textboxes and combo boxes are
blank and if blank then it does nothing or if is not null then do something?

There is one textbox (Date) which is never null.

Your help is appreciated ^_^
 
A

Angelsnecropolis

Yes and No. I'm only concerned if they are idle and input is in various fields.
Like if txtbox1 has info OR txtbox2 has info then after 15 minutes do [Event].
However, if they enter info into txtbox1 or txtbox 2, then delete the info
so its cleared, then the timer is stopped and reset back to 0.

Basically, I just want a timer to start ONLY if the various fields on the
form have input.
 
R

ruralguy via AccessMonster.com

The link I posted can be modified to any time you wish and accomplish
anything you want when it times out.
Yes and No. I'm only concerned if they are idle and input is in various fields.
Like if txtbox1 has info OR txtbox2 has info then after 15 minutes do [Event].
However, if they enter info into txtbox1 or txtbox 2, then delete the info
so its cleared, then the timer is stopped and reset back to 0.

Basically, I just want a timer to start ONLY if the various fields on the
form have input.
Are you just trying to see if the user fell asleep?
http://support.microsoft.com/Default.aspx?kbid=210297
[quoted text clipped - 15 lines]
 
A

Angelsnecropolis

The form is allowed to be open for an unlimited amount of time. My primary
concern isn't the Idle time but the verification of whether the form fields
are blank or not blank after a given time. Do you know of an efficient way to
verify the controls?

ruralguy via AccessMonster.com said:
The link I posted can be modified to any time you wish and accomplish
anything you want when it times out.
Yes and No. I'm only concerned if they are idle and input is in various fields.
Like if txtbox1 has info OR txtbox2 has info then after 15 minutes do [Event].
However, if they enter info into txtbox1 or txtbox 2, then delete the info
so its cleared, then the timer is stopped and reset back to 0.

Basically, I just want a timer to start ONLY if the various fields on the
form have input.
Are you just trying to see if the user fell asleep?
http://support.microsoft.com/Default.aspx?kbid=210297
[quoted text clipped - 15 lines]
Your help is appreciated ^_^
 
R

ruralguy via AccessMonster.com

You need the Timer event running just to wake yourself up once in a while to
see what is going on. You control the frequency of the wake up call with the
TimerInterval property. Zero turns off the Timer interrupt. As for an
"efficient" way to check controls I generally just use brute force and a
bunch of If...End If statements. Did you want to check ALL of the controls or
just TextBox controls? All of the TextBoxes or just some of them?
The form is allowed to be open for an unlimited amount of time. My primary
concern isn't the Idle time but the verification of whether the form fields
are blank or not blank after a given time. Do you know of an efficient way to
verify the controls?
The link I posted can be modified to any time you wish and accomplish
anything you want when it times out.
[quoted text clipped - 12 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top