Hi, after reading the forums i have managed to kick people out of my front end using the code below in the 'on time' event of a form:
but i want it to give the user a warning 15 minutes before the update and i thourght about using the above again but getting it too look at another field of the table.
so when i change 'Logout' to true on the table they get a logout warning asking them to exit within 15 minutes, and then after 15 minutes set the 'kick' field of the table to true which will give them a msg box telling them that they are being kicked out of the DB and then exiting the front end for them
any ideas?
best regards
Code:
Private Sub Form_Timer()
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
Dim strSQL As String
rs.Open "tblLogout", CurrentProject.Connection, adOpenKeyset, adLockOptimistic
rs.MoveFirst
If rs!Logout = True Then
MsgBox "DB update, You are Kicked ;-)"
do cmd.quit
End
End If
rs.Close
Set rs = Nothing
End Sub
but i want it to give the user a warning 15 minutes before the update and i thourght about using the above again but getting it too look at another field of the table.
so when i change 'Logout' to true on the table they get a logout warning asking them to exit within 15 minutes, and then after 15 minutes set the 'kick' field of the table to true which will give them a msg box telling them that they are being kicked out of the DB and then exiting the front end for them

any ideas?
best regards