Time Display

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

Guest

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
 
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
 
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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top