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

Sizing and positioning forms on database startup

Status
Not open for further replies.

StrikeEagleII

Technical User
Oct 4, 2006
57
US
My current database has three form which all appear on startup. I currently use the docmd.movesize method to fix their size and position. The problem is when the database is loading, the normal database menus appear pushing the form position down. When it's done loading those menubars disappear per what I have set in the database startup options, which leaves a gap between the menubar and my forms. Is there a way to fix that? for my top left form this is code I use to position it:
r = 0
d = 0
w = 4
h = 3.25

DoCmd.MoveSize r * 1440 + 1, d * 1440 + 1, w * 1440, h * 1440

The other forms use similar code. Any suggestions? Thanks!
 
You can limit the menubars that appear or better yet, create your own.
 
How? I've went to Tools > Startup... and unchecked everything and selected my own custom menubar under "Menu Bar". In spite of this, the other menu bars appear briefly when the database is opening, moving all my forms down. When everthing is loaded, they disappear as desired and my custom menu bar is displayed, but a gap remains where the extra menus were.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top