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

Stop Switchboard Form From Maximizing

Status
Not open for further replies.

bdfigler

Programmer
Oct 12, 2001
58
0
0
US
I'm working with legacy Access DB, and the startup form maximizes every time. Is this something that Access does by default? How do I make it open the window to the size I want? Thanks. -Brad
 
Brad,

This code will minimize the switchboard and open the database window.

DoCmd.SelectObject acForm, "Switchboard", False
DoCmd.Minimize

Russ
 
The weird thing is that I put DoCmd.Minimize in the form's open AND load events, but that doesn't seem to be enough -- Access keeps maximizing this window. Also, I don't want to minimize it -- I just want to 'restore' it. I can use the DoCmd.MoveSize method if I could just get it to stick. Any more thoughts?
 
I have had this problem to solve it you must
set the forms property.
1. set Auto resize to Yes
2. set border style to sizable
3. set auto center to Yes
4. Now resize your screen to the size you want and save it

This has worked for me Hope this helps
 
Just another thing to check is make sure there is not an autuexe macro that has MAXMIZE as one of its steps. I have several databases that I use this in.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top