Warning message pop-up

  • Thread starter Thread starter Alex Martinez
  • Start date Start date
A

Alex Martinez

Hello,

I like to have a form that will pop-up on my command for all user who are
currently log in the database to log off. Is this possible? Any tips or
website example will be appreciated. Thank you in advance.
 
Alex said:
Hello,

I like to have a form that will pop-up on my command for all user who
are currently log in the database to log off. Is this possible? Any
tips or website example will be appreciated. Thank you in advance.

Typical method is to have a form that is always open check for an entry in a
table at set intervals (say once a minute). Normally this table would be empty,
but when you want people to exit the app you put a message into the table and
then next time the interval passes your timer code sees the entry and displays
it in another form. That form has a timer event of its own (say five minutes)
after which it closes the app down if the user hasn't already done so.

This is imperfect because if a user has a dialog open then no code will execute
until that dialog is closed (including the timer methods used for your message).
 
Back
Top