I have a form that automatically is shown when a user enters the database. I want to disable all exits of this form so that the user cannot exit the form before he/she exits the whole database. How do I do this?
Give them an Exit button on the form, or write code on the onclose event of the form that forces the application to close.
Sub Exitbutton onClick()
docmd.RunCommand accmdExit
End Sub
Sub Form onClose()
docmd.RunCommand accmdExit
End Sub