Results 1 to 5 of 5
  1. #1
    rwahdan1978 is offline Advanced Beginner
    Windows 11 Access 2016
    Join Date
    Jun 2024
    Posts
    57

    adding timer to form with another interval


    In the form I am using the time interval of 5000 for something i need and I need to also have a timer in the same form that has interval of 1000. How to do that?

  2. #2
    twgonder is offline Expert
    Windows 10 Access 2021
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    714
    I would suggest setting the timer for the lowest value, then do a count in the timer procedure, using a static variable.
    Upon reaching the desired count, do the other procedure you want and then reset the counter variable.
    This way you could have dozens and dozens of "somethings" you need to do.

  3. #3
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    A timer value of 1000 will fire every second. For sure that will be a major pain if nothing else. Every 5 seconds seems bad enough.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    rwahdan1978 is offline Advanced Beginner
    Windows 11 Access 2016
    Join Date
    Jun 2024
    Posts
    57
    I have a count down timer but it is moving 2 seconds instead of 1 second. the interval is 1000 but it noves 2 seconds at once. say 30 stock 1 second then goes
    29-28 in the same time. why is that? how to solve this issue?

  5. #5
    Join Date
    Jun 2022
    Posts
    28
    Maybe try adding a DoEvents after updating the display.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 12
    Last Post: 07-23-2023, 04:58 PM
  2. Open Form Based on a Timer
    By jlindquist23 in forum Access
    Replies: 4
    Last Post: 01-24-2020, 03:13 PM
  3. Form Timer emails
    By DMT Dave in forum Access
    Replies: 2
    Last Post: 05-30-2019, 08:00 AM
  4. refresh interval & unbound form
    By vientito in forum Programming
    Replies: 6
    Last Post: 11-11-2014, 11:31 AM
  5. Replies: 16
    Last Post: 07-23-2014, 10:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums