Exit Code

wop0703

Registered User.
Local time
Today, 05:01
Joined
Jun 1, 2005
Messages
77
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?

Thanks
 
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
 

Users who are viewing this thread

Back
Top Bottom