If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
How do I put a Countdown timer display in a form?
I created a testing application with MS Access but I would like to apply a
countdown timer letting the testers know how much time they have to complete the exam. Has anyone created code that does something like this? |
#2
|
|||
|
|||
How do I put a Countdown timer display in a form?
1. Create a form with an unbound text box, and give it these properties:
Format h:nn:ss Name txtTime 2. Add a second text box where you enter the date and time when the exam is to end. Set these properites: Format General Date Name txtEndTime 2. Set these properties for the form itself: Timer Interval 10000 On Timer [Event Procedure] 3. Click the Build button (...) beside the On Timer property Access opens the code window. Between the "Private Sub..." and "End Sub" lines, enter: Me.txtTime = Me.txtEndTime - Now() -- Allen Browne - Microsoft MVP. Perth, Western Australia Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "mreckley" wrote in message ... I created a testing application with MS Access but I would like to apply a countdown timer letting the testers know how much time they have to complete the exam. Has anyone created code that does something like this? |
Thread Tools | |
Display Modes | |
|
|