Logout

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

is there a way to force the logout of all open sessions at a schedule time
(before doing backup)

Thanks !
 
Hi Yvan,

Yes this is possible.

Essentially, all you need to do is have a table in the backend for the sole
purpose of determining whether the programme should run or not.

On a timer event in a form that opens at startup and remains open for the
entire session of every front end running, place code similar to the
following:

IF DLookup("Checkfield","ShutdownTbl") = -1 Then
doCmd.Quit
Else
End If

Either manually enter a yes/no value into the shutdown table or do it as an
UPDATE SQL.
That is the basic method of achieving your goal, but, make it a little nicer
by giving a warning before kicking people out of course.

Regards,

Nick
 
Biz Enhancer said:
That is the basic method of achieving your goal, but, make it a little nicer
by giving a warning before kicking people out of course.

But don't give that warning by using a msgbox. That will halt
execution at that point. Better to display a form with a warning
message and a countdown.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top