Marshall Brooks
Member
- Local time
- Today, 03:36
- Joined
- Feb 28, 2023
- Messages
- 727
This is related to this question: https://www.access-programmers.co.u...-disable-right-click-close-menu.328536/page-2
I've seen the answer before, but I don't remember what it was and I couldn't find it in a search.
I want to run one event (re-open the switchboard if closed) every 5 seconds, and another event (check for logout file), every 60 seconds from one hidden form.
I don't know if I can have multiple timers on the same form ...
I think the form code would look something like this:
It's this line I'm not sure about:
If CLong(Timer/5) = Timer/5 Then
I don't recall if it was CLong, CInt, Rnd, Remainder of Timer/5 = 0 etc.
Thanks in advance!!!
I've seen the answer before, but I don't remember what it was and I couldn't find it in a search.
I want to run one event (re-open the switchboard if closed) every 5 seconds, and another event (check for logout file), every 60 seconds from one hidden form.
I don't know if I can have multiple timers on the same form ...
I think the form code would look something like this:
Code:
Me.TimerInterval = 1000 ' Run timer every second
If CLong(Timer/5) = Timer/5 Then 'Every 5 seconds
' Reset Switchboard
End If
If CLong(Timer/60) = Timer/60 Then 'Every 60 seconds
' Check for logout file
End If
It's this line I'm not sure about:
If CLong(Timer/5) = Timer/5 Then
I don't recall if it was CLong, CInt, Rnd, Remainder of Timer/5 = 0 etc.
Thanks in advance!!!