Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private lastKeyPress As DateTime 'formlevel variable
Private Sub Form_KeyPress(KeyAscii As Integer)
lastKeyPress = now()
End Sub
Private Sub Form_Timer()
Dim interval As Double
Dim hours As string
interval = now() - lastKeyPress
hours = Format(interval, "h")
if hours = "0" Then
'do nothing
else
DoCmd.Quit
End If
End Sub
End If