Results 1 to 3 of 3
  1. #1
    Jeremy Sng is offline Advanced Beginner
    Windows 7 32bit Access 2016
    Join Date
    Aug 2016
    Posts
    43

    Start and Stop Button to the current running hours.


    Hi i'm currently creating running hours which it's currently run 24/7. But i wish to create a start and stop button because the system will stop when i do servicing. Which i can easily tracks my downtime. Any one can help me. Thanks

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    in a form click the start timer ,this sets the start variable

    Code:
    a text box for start , stop and elaps
    
    sub btnStart_click()
    txtStart = now()
    end sub
    
    
    
    sub btnStop_click()
    txtEnd=now()
    txtElaps =DateDiff("n",txtStart, txtEnd)
    
    'run a query to post txtElaps to a table
    end sub
    theres also the TOGGLE button, pressed in , timer can be on
    press again, it turns off and the timer.

  3. #3
    Jeremy Sng is offline Advanced Beginner
    Windows 7 32bit Access 2016
    Join Date
    Aug 2016
    Posts
    43
    Will this works when i already calculate on Query?

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

Similar Threads

  1. start / stop clock
    By laynlowz in forum Forms
    Replies: 1
    Last Post: 10-19-2015, 06:32 PM
  2. Spread hours between start and end dates
    By nigelbloomy in forum Queries
    Replies: 1
    Last Post: 10-07-2015, 02:11 PM
  3. Replies: 7
    Last Post: 10-05-2013, 08:43 AM
  4. Start and Stop times where condition true
    By cheshire_smile in forum Queries
    Replies: 3
    Last Post: 07-05-2011, 09:59 PM
  5. auto start/stop time
    By j0ker21m in forum Reports
    Replies: 1
    Last Post: 12-10-2005, 08:42 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