?
Solved

VBA - Page Maximisation

Posted on 2006-07-07
3
Medium Priority
?
281 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 1000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Suggested Courses

771 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