Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable Acces close button 1

Status
Not open for further replies.

diezzz

Technical User
Joined
Oct 11, 2006
Messages
28
Location
HU
How can i disable the acces close button, using vba? I managed once when i was working for school only in vb6 to pop up a msg box everytime the user click on the close button "please use the quit button on the form".

I'm talking of the big acces button, not the ones for forms, reports etc.

Can anyone help me?
 
set the control box property of the form to false


Ian Mayor (UK)
Program Error
Programming is 1% coding, 50% error checking and 49% sweat as your application bombs out in front of the client.
 
Sorry that was VB

set the close button in the format properties of the form to no or set control box to no

Ian Mayor (UK)
Program Error
Programming is 1% coding, 50% error checking and 49% sweat as your application bombs out in front of the client.
 
diezzz, here's a link to Calvin Smith's method of disabling the control box on the Access window: I've used his method on several applications and it works well. Once you have his code stored in a module, you then disable the control box using [tt]EnableDisableControlBox False[/tt] and enable the control box using [tt]EnableDisableControlBox True[/tt].

Hope this helps,
Larry
 
thank you very much, it works:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top