Results 1 to 2 of 2

Thread: Extending Timer range

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 1999
    Location
    Turner ME USA
    Posts
    18

    Post

    I am using a Timer in a project, but the interval for that control only lasts just over 1 minute and I need up to 30 minutes of time! Any suggestions on how to make a timer for up to 30 minutes?

    Thanks!

    Jeff

  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263

    Post

    One very simple way: Set your timer's interval to 1 and use this as your code for it:

    Code:
    Static OldTime
    If OldTime = "" Then OldTime = Time
    If DateDiff("n", CDate(OldTime), Time) = 30 Then
        OldTime = ""
        MsgBox "30 Minutes has elapsed.", vbInformation, "Time"
        'Other code here....
    End If

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width