Solved

VBA - Page Maximisation

Posted on 2006-07-07
3
251 Views
Last Modified: 2008-03-06
I have a page which insists on itself being maximised. I have tried to solve this by using DoCmd.MoveSize 3500, 2000, 12000, 8000, but it still has issues. I have found all the maximise code and commented them out. I have now used DoCmd.Restore, but it looks weird when its resizing itself. Is there a properties function I have missed or something? Also how do i get my scrren to be in the centre of the ocmputer screen. I have it on other forms, but have forgotten what I did??
0
Comment
Question by:andyb7901
3 Comments
 
LVL 65

Expert Comment

by:rockiroads
ID: 17058982
u can centre screen in design, I think
There is Auto Center, dont know if that will help u
0
 

Author Comment

by:andyb7901
ID: 17059076
I have enabled auto centre, but it seems to put itself equal distance from each side of the screen, but the bottom of the form is right at the bottom of the screen! WEIRD??
0
 
LVL 34

Accepted Solution

by:
jefftwilley earned 500 total points
ID: 17060648
If the form is opened from another form, or from a menu of some kind, you need to make sure it's opened normally and not maximized at that time. You said you went through all the code and took out the maximize, but you might have missed one. If you want your form to autocenter, then rocki's suggestion is the preferred method. If you use the MoveSize like you mentoin initially, then you need to remove the autocenter property(set autocenter to no). Access remembers relative screen size and position. If you open your form in design view, put it where on the screen you want it, size it appropriately then save it, it will remember where it's supposed to be next time it's opened. Let us know if you've got this one whipped.
J
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now