Can't seem to turn off control box

Big Pat

Registered User.
Local time
Today, 19:23
Joined
Sep 29, 2004
Messages
555
I have several forms in my database and I want to turn off the control boxes, so that users are forced to use a "close" button I've programmed, which does other things.

I've done this loads of times in other dbs but in this database it just doesn't seem to work. The Control Box property is set to 'No' in each form, but actually it's still there.

I have got it to work now by setting Close Button to 'No' and Min Max Buttons to 'None' but I wonder why the other approach didn't work.

I upgraded to A2007 here at home about a year ago, but in development this database has been back and forth to work where I still have A2003. Could this be an issue, or can I have inadvertently changed some setting somewhere?

I've just tried it in a brand new .accdb and setting Control Box to No has just left an INACTIVE close button, which is fair enough I suppose, though not as neat as getting rid of it entirely. But that's NOT the case with this db I'm finalising now.

Not urgent, this, as I've got round the issue. Puzzled, that's all!
 
Pat,

here a different approach, avoiding your problem in the first place.

I am always annoyed, if a program does not have the standard GUI features (like the X in the upper right corner).

You could address your need by sticking the code that needs to be executed on form close into the Form_Close event. This way it is executed if the user closes the form thru the standard GUI element or if closing the form is triggered by the code behind the Click event of the custom "Close" button.

Just a hint
Thomas
 
Did you post this identical problem elsewhere a week or two ago? I'm asking so that I can tell whether or not this is an isolated problem with you, maybe a form of corruption, or whether we're seeing a heretofore unknown bug emerge.
 

Users who are viewing this thread

Back
Top Bottom