Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

timer count down / up

Status
Not open for further replies.

hisham

IS-IT--Management
Nov 6, 2000
194
who can i creat a label or text box or whatever on the form to disply a timer that count down or count up based in field in the table its data tipe is date/time.
Thanks in advance
 
Can you elaborate on exactly what you want to do.
I read this as if you want to perhaps add or deduct days/weeks etc.. from a fixed date in the table.

Is this correct?

Eradic8or.
 
Eradic8or

No, I need the text box to display timer that count down/up the time like the clocks i.e. when the user enter the value 02:45 in the date field, then the text box “timer” begin
Count the time down/up like the clock based in this value.
Thanks.
 
You can set the 'on timer' event of a form to update a text box every second. Set the timer interval to 1000 (it is in milliseconds so 1000 = 1 second). Then on the 'on timer' event of the form:

me.textbox = me.textbox + 1

Of course this only counts up and down using seconds. To include minutes and hours would require more coding, but the basic idea is use the 'on timer' event of the form.
Mike Rohde
rohdem@marshallengines.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top