PC Review


Reply
Thread Tools Rate Thread

countdown timer

 
 
Nick T
Guest
Posts: n/a
 
      13th Nov 2008
Hi,

Have a text box which automatically starts a countdown timer when a form is
opened.
Counts down in seconds.

Can i make it read out in mm:ss?
eg, if it starts at 90seconds, it currently displays '90', however i want it
to display 01:30. (ie. 1minute, 30seconds).

Any suggestions??
 
Reply With Quote
 
 
 
 
John Spencer
Guest
Posts: n/a
 
      13th Nov 2008
In one control, use
Format(TimeInSeconds\60, "00") & ":" & Format(TimeInSeconds Mod 60,"00")

John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County

Nick T wrote:
> Hi,
>
> Have a text box which automatically starts a countdown timer when a form is
> opened.
> Counts down in seconds.
>
> Can i make it read out in mm:ss?
> eg, if it starts at 90seconds, it currently displays '90', however i want it
> to display 01:30. (ie. 1minute, 30seconds).
>
> Any suggestions??

 
Reply With Quote
 
Nick T
Guest
Posts: n/a
 
      13th Nov 2008
Hi,
Thanks for that, but could you clarify (bit of a beginner).
My code on my form is:

Private Sub Form_Timer()
If Me.Timer1 = 0 Then
Else
Me.Timer1 = Me.Timer1 - 1
End If

If Me.Timer1 = 0 Then
Me.Text4 = "Check Required"
Me.Text4.BackColor = vbRed
End If


If Me.Timer2 = 0 Then
Else
Me.Timer2 = Me.Timer2 - 1
End If
If Me.Timer2 = 0 Then
Me.Text6 = "Check Required"
Me.Text6.BackColor = vbRed
End If


End Sub

My form timer interval is set to 1000
Thanks for the help.


"John Spencer" wrote:

> In one control, use
> Format(TimeInSeconds\60, "00") & ":" & Format(TimeInSeconds Mod 60,"00")
>
> John Spencer
> Access MVP 2002-2005, 2007-2008
> The Hilltop Institute
> University of Maryland Baltimore County
>
> Nick T wrote:
> > Hi,
> >
> > Have a text box which automatically starts a countdown timer when a form is
> > opened.
> > Counts down in seconds.
> >
> > Can i make it read out in mm:ss?
> > eg, if it starts at 90seconds, it currently displays '90', however i want it
> > to display 01:30. (ie. 1minute, 30seconds).
> >
> > Any suggestions??

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set up countdown timer to countdown days to a specific day Jenny Microsoft Excel Worksheet Functions 2 28th Jun 2009 04:42 PM
countdown timer Jim Microsoft Frontpage 2 15th Jul 2008 05:52 PM
Countdown Timer damianlaw Microsoft Powerpoint 1 29th Jun 2008 11:49 AM
Re: countdown timer Dirk Doler Microsoft VB .NET 0 22nd Apr 2005 10:57 AM
Countdown Timer SuperChicken Microsoft Powerpoint 5 31st Aug 2003 03:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:39 PM.