prevent bypass key on startup

R

RipperT

I have a form set to load at startup that has code in its Load event thus:

Private Sub Form_Load()
DoCmd.OpenForm "frmLogOff", windowmode:=acHidden

End Sub

frmLogOff runs in the background and allows me to gently log users off. Of
course, a savvy user can bypass this with the shift key at startup. Is there
any way around this?

Many thanx,

Rip
 
K

Klatuu

See AllowBypassKey Property in VBA Editor help. It give detailed info on how
to do this.
 
Top