Results 1 to 2 of 2

Thread: Just Need an idea

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    brooklyn
    Posts
    48

    Thumbs up

    I wrote an application that read a text file in the
    certain folder and put the content into the sql server table

    The application is running ok.
    Now I want the application to run at backgroud at predetermined intervals. How can I do it?

    Thanks for your help

  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Posts
    305
    Well, first make the main form invisible or minimized. Then put in a timer. If you want the interval to be less than a minute, simply put the interval for that long. If you want it every ten minutes or something like that, try this:

    Code:
    Dim X
    
    Private Sub Timer1_Timer() 'Set your interval to 60,000 (1 min)
    X = X + 1
    If X >= 10 Then
    X = 0
    'EXECUTE YOUR CODE
    End If
    End Sub
    bob

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