How to remove close button on form?

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?
 
S

strive4peace

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

*
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top