Control Size of Form in ACCDE?

I have my main forms in an Access 2007 app with Fit To Screen = No, Aut Resize = No, Border Style = Thin, Control Box = No, Close Button = No, Min Max Buttons = None, Moveable = No.

In the FormOpen for each main form, I have logic that queries the height and width settings of the screen, and if they are above a certain size (1024 x 768), I specify the size I want for the form:
DoCmd.MoveSize 0, 0, 15365, 10806

When in developer mode, this all works fine.  No close box, min max buttons, etc. appear.  And the form appears at the desired size.
BUT, when I compile the app into an ACCDE and run it, the form expands to the full size of the screen (1440 x 900), there is a close box, a min max button, a minimize button and a question mark button.

Why doesn't it function the same as an ACCDE as it does as an ACCDB?
LVL 1
wsturdevAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tbsgadiCommented:
Hi wsturdev,

Have you tried to see what happens if you set Aut Resize = Yes

Gary
0
wsturdevAuthor Commented:
Auto Resize = Yes does not change anything.
0
wsturdevAuthor Commented:
Turns out I had a Maximize in my AutoExec macro.  I eliminated that ststement and the problem is solved.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.