Time Display

P

pjscott

I’m using Access 2002 and have a form that display for 7 seconds. To let the
user know what’s going on I would like to display the seconds counting down
on the form. What code would I use to do this?

Thanks for the help,

Paul
 
K

Klatuu

I assume you are using the Timer event to do the 7 seconds.
Create a text box on the form. Set the Default Value property to 7. I
would also set the Locked property to True. Then each time the Timer event
fires:
Me.txtTimerDisplay = Me.txtTimerDisplay - 1
 
Y

YisMan

use the timeron and timerinterval properties of the form to update the
label/field where the countdown is

make sure you use a module-scope variable (declared in the declaration
region) to keep the countdown number
 
K

Klatuu

No Problem. It is just that I am very much a minimalist when it comes to
coding. I guess that comes from the days when I only had 4K of memory to
work with, but I never create a varialbe if there is another way to reference
the value.
 
Top