Results 1 to 6 of 6

Thread: Timer Control Problem!!!

  1. #1

    Thread Starter
    Member
    Join Date
    May 2004
    Posts
    36

    Timer Control Problem!!!

    Hi,

    I am using a timer control on a primary form that kicks off every 15 seconds. This refreshes a grid which shows data from a database. My probem is when I click on a menu function, another form pops up that allows me to edit data. When I make the change to the data it updates the database. I then close out the form. However, the primary form that has the timer control now has focus again but is not firing once the form has regained focus. What am I doing wrong.

    Thanks,
    Blake

  2. #2

    Thread Starter
    Member
    Join Date
    May 2004
    Posts
    36
    Anyone have any ideas on this one?

  3. #3
    Addicted Member
    Join Date
    May 2004
    Location
    China
    Posts
    228
    Is it not firing or not updating? E.g., if you put in a msgbox or debug.print, what happens?

  4. #4
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    Just a guess. You disabled the Timer but do not re-enable it.

    A Timer event will fire regardless of whether the form has focus or not.

  5. #5
    Addicted Member
    Join Date
    May 2004
    Location
    China
    Posts
    228
    Either that or the data is not refreshing, so he thinks it is not firing...

  6. #6
    Fanatic Member laserman's Avatar
    Join Date
    Jan 2002
    Location
    Wales U.K
    Posts
    775
    Try refreshing the form.

    e.g form1.refresh

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