Time countdown

S

Stockwell43

Hello,

I have a database that was designed for Auctions. What I would like if
possible, is to place a timer of some sort on the form. I somehow want to set
the amount of time I want the auction to run, click a button to start the
countdown (after I start the clock I will hide the button) and then have the
clock run so everytime the form is opened it will show the remaining time
left. Is this doable and how difficult would it be?

Thanks!!!
 
S

Stockwell43

Thanks Daniel,

Am I not able to place the timer on the Auction form with a text field?
Also, what coding would I use? I am still kind of new to Access.

Thanks!!!
 
D

Daniel

This can be done.

basically you'll need to create a simple form and initialize a variable for
your time to 00:00:00. Then using the timer event set it to run every second
(set the Timer Interval 1000 = 1 second) and code it to update your variable
by 1 second and update the control on your form with the new value.

you can create a countdown timer the same way but initializing your variable
to your total time and using the timer event to substract 1 second at a time.

Daniel
 

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

Top