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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing "X" button and maximizing the windows?

Status
Not open for further replies.

RiderJon

Programmer
Aug 26, 2002
190
FR

Is there a way to disable the "X" button and the maximize/minimize that closes the window in ACCESS?

Also is there a way to force the ACCESS to display the windows in a maximized version?

Thank you.



RiderJon
"I might have created ctrl+alt+del,
But Bill made it famous" - Dr. Dave
 
Hiya,

All forms have properties under the 'Format' tab:
Control Box, Close Button, Min Max.

Not sure about always opening 'maximised', but it will be there.

Experiment.

Regards,

Darrylle

"Never argue with an idiot, he'll bring you down to his level - then beat you with experience." darrylles@totalise.co.uk
 
To always open the form maximised, you will need to place the command "DoCmd.Maximize" in the open event of the form
 
Thanx for the tip guys.

I did a little investigation .... If you check the "Maximized" in the "Autoexec" macro. It always opens up maximized. Only problem .... you can't get rid of shrinking the size. By default, "the Min/Max" button is always present.

RiderJon
"I might have created ctrl+alt+del,
But Bill made it famous" - Dr. Dave
 
If you put the VBA coding that I have suggested in the on activate event, the form will maximise whenever it becomes active, i.e whenever anyone looks at it. This will resolve your problem of resizing.
 
Follow the advice of DJS2. In the form you want to open maximized all the time, add in the "Docmd.Maximize" statement.

To get rid of the Minimine, Maximize and close buttons, just go into the properties of the form and disable the Min/Max and close buttons.

That will solve both of your questions.

---------------------------------------

In my limited experience, 80-90% of all problems brought to my attention can be attributed to PEBCAK...the other 10-20% can be attributed to MS!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top