How to remove close button on form?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form that I do not want users to close (it's the form that opens
when the database opens). I have tried setting the Close Button property on
the Form to No, but it still is there. I also set the Control Box propoerty
to No, which is supposed to remove the button, also, but it's still there.
Any suggestions?
 
Hi Holly,

how about cancelling the form UnLoad event?

'~~~~~~~~~~~~
Private Sub Form_Unload(Cancel As Integer)
cancel = true
End Sub
'~~~~~~~~~~~~

of course, there probably needs to be SOME circumstance
where you are allowed to unload the form ... like when you
want to quit the database...

Warm Regards,
Crystal
Microsoft Access MVP 2006

*
Have an awesome day ;)

remote programming and training
strive4peace2006 at yahoo.com

*
 
Back
Top