A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I put a Countdown timer display in a form?



 
 
Thread Tools Display Modes
  #1  
Old December 21st, 2006, 02:26 PM posted to microsoft.public.access.forms
mreckley
external usenet poster
 
Posts: 12
Default 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  
Old December 21st, 2006, 02:41 PM posted to microsoft.public.access.forms
Allen Browne
external usenet poster
 
Posts: 11,706
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:05 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.