Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / April 2005

Tip: Looking for answers? Try searching our database.

Timing an action

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Don - 29 Apr 2005 16:28 GMT
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?
Signature

Don Rountree

Jeff - 29 Apr 2005 16:42 GMT
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

> 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?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.