Timing an action

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I hope this can be done. I have a list box and a command button on a form.
The command button opens a new form to the selected record in the list box.
I want the command button's enable property to be false when the list box
loses focus. When this happens, the button cannot be used to access the new
form. Is it possible to time the comman button's enable property so that its
enable property kicks in after 5 or 6 seconds?
 
Hello Don,

Yes this can be done. Anything can be Timed & to do so you would use the
Form_Timer Event. See help for more info. Also you would have to put logix
in it when to Enable or Disablt the button becuase the Timer always counts
down.

Also look into the "TimerInterval" property this sets the interval for the
timer to count down so for you in the Form Load event have:

Me.TimerInterval = dblNumOfSeconds * 1000

I hope this was helpful.

Jeff
 
Back
Top