you can set the properties to not show the Min/Max and Close buttons, but as far as I know, there is no way to hide the "X" on the Access bar itself at the very top.
"The secret of teaching is to appear to have known all your life what you learned this afternoon
there is a FAQ on this site about this issue. Search for it. But here is the code from that. Once you load this form, you can not close the database without using the forms button.
Option Compare Database
Option Explicit
Public blnOKToClose As Boolean
Private Sub Command0_Click()
blnOKToClose = True
DoCmd.Quit
End Sub
Private Sub Form_Unload(Cancel As Integer)
Cancel = Not blnOKToClose
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.